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

View File

@@ -155,13 +155,13 @@ function sync(dataLayout, taskProcessor, concurrency, callback) {
safe.fs.closeSync(newCacheFd);
debug(`Processing ${delQueue.length} deletes and ${addQueue.length} additions`);
debug(`sync: processing ${delQueue.length} deletes and ${addQueue.length} additions`);
async.eachLimit(delQueue, concurrency, taskProcessor, function (error) {
debug('Done processing deletes. error:', error);
debug('sync: done processing deletes. error: %o', error);
async.eachLimit(addQueue, concurrency, taskProcessor, function (error) {
debug('Done processing adds. error:', error);
debug('sync: done processing adds. error: %o', error);
if (error) return callback(error);