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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user