Skip to content
This repository
Browse code

[fix] Set `._names` from initial list of transports passed to Logger …

…constructor function
  • Loading branch information...
commit 437eff64b1e7756cda2f63b0e0273f6930082190 1 parent 87e3c68
Charlie Robbins indexzero authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  lib/winston/logger.js
1  lib/winston/logger.js
@@ -50,6 +50,7 @@ var Logger = exports.Logger = function (options) {
50 50
51 51 if (options.transports) {
52 52 options.transports.forEach(function (transport) {
  53 + self._names.push(transport.name);
53 54 self.transports[transport.name] = transport;
54 55 });
55 56 }

0 comments on commit 437eff6

Please sign in to comment.
Something went wrong with that request. Please try again.