diff --git a/lib/log.js b/lib/log.js index d4ffcad56..0e0567a69 100644 --- a/lib/log.js +++ b/lib/log.js @@ -96,7 +96,9 @@ Logger.create = function (config, cb) { if (!config.logPath) { 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({