Merge pull request #513 from 7adietri/patch-1

Add shutdown() to non-disk logger
pull/1/head
ansuz 5 years ago committed by GitHub
commit a2facc4a0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -96,7 +96,9 @@ Logger.create = function (config, cb) {
if (!config.logPath) { if (!config.logPath) {
console.log("No logPath configured. Logging to file disabled"); console.log("No logPath configured. Logging to file disabled");
return void cb(Object.freeze(createMethods(ctx))); var logger = createMethods(ctx);
logger.shutdown = noop;
return void cb(Object.freeze(logger));
} }
Store.create({ Store.create({

Loading…
Cancel
Save