Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:ericmedem/winston into ericmedem-…
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
jfhbrook committed Oct 19, 2012
2 parents f59eb34 + bc4dc4e commit e2a182f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/container.js
Expand Up @@ -38,7 +38,7 @@ var Container = exports.Container = function (options) {
Container.prototype.get = Container.prototype.add = function (id, options) {
if (!this.loggers[id]) {
options = common.clone(options || this.options || this.default);
options.transports = options.transports || [];
options.transports = options.transports || this.options.transports || [];

if (options.transports.length === 0 && (!options || !options['console'])) {
options.transports.push(this.default.transports[0]);
Expand Down

0 comments on commit e2a182f

Please sign in to comment.