logs: use %o to format error

otherwise, they are printed as multi-line and this messes up tail+date formatting
This commit is contained in:
Girish Ramakrishnan
2023-04-16 10:49:59 +02:00
parent e6f870b220
commit c4f4f3e914
29 changed files with 70 additions and 73 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ async function cleanupTokens() {
debug('Cleaning up expired tokens');
const [error, result] = await safe(tokens.delExpired());
if (error) return debug('cleanupTokens: error removing expired tokens', error);
if (error) return debug('cleanupTokens: error removing expired tokens. %o', error);
debug(`Cleaned up ${result} expired tokens`,);
debug(`Cleaned up ${result} expired tokens`);
}
async function cleanupTmpVolume(containerInfo) {