diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-10 14:58:23 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-10 14:58:23 +0300 |
commit | 897d169b6e1943e54463480309fd6f2057383c5d (patch) | |
tree | 9eca6a453b79b54ab3f66abb8afd304ae5b1a6aa /src/lib | |
parent | 97ce1da61986ba76b6ec8858c36e46b714873e55 (diff) |
async logger.shutdown
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/logger.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/logger.js b/src/lib/logger.js index 8a44e07..f886e0c 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -102,9 +102,12 @@ module.exports = { /** * @param cb + * @return {Promise} */ shutdown(cb) { - log4js.shutdown(cb) + return new Promise((resolve, reject) => { + log4js.shutdown(resolve) + }) }, Logger: log4js.Logger, |