mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-04 18:12:56 +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);
|
volumesList.push(volume);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof InternalInconsistencyError) {
|
if (err instanceof InternalInconsistencyError) {
|
||||||
log.debug(`Cannot parse Volume: ${volumeInfo.Name}`);
|
log.debug(`Found unmanaged Volume: ${volumeInfo.Name}`);
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,9 @@ describe('Volume Manager', () => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
// Check that debug message was logged saying we found a Volume not created by us
|
// 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