Commit 9d0fa1a3 authored by Cory Bryant's avatar Cory Bryant

Let console exist even without a config

parent 6961fd0b
......@@ -9,15 +9,13 @@ module.exports=function(config){
var delegates = {};
var defaultTransports=[];
if(_.get(config,"console")){
defaultTransports.push( new (winston.defaultTransports.Console)(
_.defaults({
name: "console",
timestamp: function () {
return new Date().toISOString();
}
}, config.console)) );
}
defaultTransports.push( new (winston.defaultTransports.Console)(
_.defaults({
name: "console",
timestamp: function () {
return new Date().toISOString();
}
}, config.console || {})) );
if(_.get(config,"files.firehose")){
defaultTransports.push( new (winston.transports.File)(_.defaults({name: "firehose"}, config.files.firehose)) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment