logging: change default formatter to noop, fixes tests
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 31 Dec 2013 13:25:56 +0000 (14:25 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 31 Dec 2013 13:26:25 +0000 (14:26 +0100)
src/fnpjs/logging/logging.js

index 9954fad..23dbb24 100644 (file)
@@ -51,7 +51,7 @@ _.extend(Logger.prototype, {
                     throw new Error('Unknown handler: ' + handlerName);
                 }
                 if(!formatter) {
                     throw new Error('Unknown handler: ' + handlerName);
                 }
                 if(!formatter) {
-                    formatter = formatters.simple;
+                    formatter = formatters.noop;
                 }
 
                 if(levels.indexOf(handlerLevel) !== -1 && levels.indexOf(level) >= levels.indexOf(handlerLevel)) {
                 }
 
                 if(levels.indexOf(handlerLevel) !== -1 && levels.indexOf(level) >= levels.indexOf(handlerLevel)) {