Log anonymous volumes

Signed-off-by: Christina Wang <christina@balena.io>
This commit is contained in:
Christina Wang 2022-05-17 04:23:02 +00:00
parent 0a9c7282e8
commit 2896444988
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,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(`Found unmanaged Volume: ${volumeInfo.Name}`); log.debug(`Found unmanaged or anonymous Volume: ${volumeInfo.Name}`);
} else { } else {
throw err; throw err;
} }

View File

@ -95,7 +95,7 @@ describe('compose/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( expect(logDebug.lastCall.lastArg).to.equal(
'Found unmanaged Volume: decoy', 'Found unmanaged or anonymous Volume: decoy',
); );
}, },
{ volumes: volumeData }, { volumes: volumeData },