From 897d169b6e1943e54463480309fd6f2057383c5d Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 10 Mar 2021 14:58:23 +0300 Subject: async logger.shutdown --- src/lib/logger.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib') 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, -- cgit v1.2.3