summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-10 14:58:23 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-10 14:58:23 +0300
commit897d169b6e1943e54463480309fd6f2057383c5d (patch)
tree9eca6a453b79b54ab3f66abb8afd304ae5b1a6aa /src/lib
parent97ce1da61986ba76b6ec8858c36e46b714873e55 (diff)
async logger.shutdown
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/logger.js5
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,