mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 08:25:36 +00:00
Merge pull request #1718 from balena-os/found-unmanaged-volume
Refactor debug log when unmanaged volume is found
This commit is contained in:
commit
eec1a32fc7
@ -33,7 +33,7 @@ export async function getAll(): Promise<Volume[]> {
|
||||
volumesList.push(volume);
|
||||
} catch (err) {
|
||||
if (err instanceof InternalInconsistencyError) {
|
||||
log.debug(`Cannot parse Volume: ${volumeInfo.Name}`);
|
||||
log.debug(`Found unmanaged Volume: ${volumeInfo.Name}`);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
|
@ -71,7 +71,9 @@ describe('Volume Manager', () => {
|
||||
},
|
||||
]);
|
||||
// Check that debug message was logged saying we found a Volume not created by us
|
||||
expect(logDebug.lastCall.lastArg).to.equal('Cannot parse Volume: decoy');
|
||||
expect(logDebug.lastCall.lastArg).to.equal(
|
||||
'Found unmanaged Volume: decoy',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user