From e7040ac51c763f3e45bd1f0731142002146eeafe Mon Sep 17 00:00:00 2001 From: John Chiu Date: Fri, 7 Nov 2014 09:29:18 -0800 Subject: [PATCH] Using the modules's name instead of modules's name.property. --- lib/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.js b/lib/common.js index 1bea369..636c0ae 100644 --- a/lib/common.js +++ b/lib/common.js @@ -120,7 +120,7 @@ exports.createWinstonLogger = function createWinstonLogger(settings) { ctor = ctor[definition.property]; } - transports[definition.property] = ctor; + transports[name] = ctor; }); }