[Log] Change spawnAsync log level from error to debug in case of not null status

This commit is contained in:
Sergey Konovalov
2018-02-09 18:36:43 +03:00
parent 832e074c6d
commit 8891910bbc

View File

@ -606,7 +606,8 @@ function* ExecuteTask(task) {
}, waitMS);
childRes = yield spawnAsyncPromise;
} catch (err) {
logger.error('error spawnAsync(id=%s)\r\n%s', cmd.getDocId(), err.stack);
let fLog = null === err.status ? logger.error : logger.debug;
fLog.call(logger, 'error spawnAsync(id=%s)\r\n%s', cmd.getDocId(), err.stack);
childRes = err;
}
if (undefined !== timeoutId) {