mirror of https://gitee.com/bigwinds/arangodb
do not print errors on shutdown
This commit is contained in:
parent
51b5dbbe57
commit
d0ae7673b9
|
@ -486,7 +486,10 @@ exports.historian = function () {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
require('console').warn('catch error in historian: %s', err.stack);
|
||||
// errors on shutdown are expected. do not log them in case they occur
|
||||
if (err.errorNum !== internal.errors.ERROR_SHUTTING_DOWN.code) {
|
||||
require('console').warn('catch error in historian: %s', err.stack);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue