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

Commit

Permalink
transports now properly inherited from this.options
Browse files Browse the repository at this point in the history
  • Loading branch information
ericedem committed Sep 22, 2012
1 parent 7cf37e0 commit bc4dc4e
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 bc4dc4e

Please sign in to comment.