Commit 89408a73 authored by Caleb Weeks's avatar Caleb Weeks

switching transport setup to use new instances rather than cloning

parent c06b5721
......@@ -9,15 +9,16 @@ module.exports=function(config){
var delegates = {};
var defaultTransports=[];
defaultTransports.push( new (winston.transports.Console)(
defaultTransports.push( () => new (winston.transports.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)) );
defaultTransports.push( () => new (winston.transports.File)(_.defaults({name: "firehose"}, config.files.firehose)) );
}
var blLevels={
......@@ -55,7 +56,7 @@ module.exports=function(config){
var transports = [];
defaultTransports.forEach(transport => {
var newTransport = _.cloneDeep(transport);
var newTransport = transport();
newTransport.label=label;
transports.push(newTransport);
});
......
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
async@~1.0.0:
version "1.0.0"
resolved "http://registry.npmjs.org/async/-/async-1.0.0.tgz#f8fc04ca3a13784ade9e1641af98578cfbd647a9"
colors@1.0.x:
version "1.0.3"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
cycle@1.0.x:
version "1.0.3"
resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
eyes@0.1.x:
version "0.1.8"
resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
isstream@0.1.x:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
lodash@^4.16.4:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
stack-trace@0.0.x:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
winston@^2.2.0:
version "2.4.4"
resolved "https://registry.yarnpkg.com/winston/-/winston-2.4.4.tgz#a01e4d1d0a103cf4eada6fc1f886b3110d71c34b"
dependencies:
async "~1.0.0"
colors "1.0.x"
cycle "1.0.x"
eyes "0.1.x"
isstream "0.1.x"
stack-trace "0.0.x"
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