Skip to content

Commit

Permalink
Proposed fix for winstonjs#307
Browse files Browse the repository at this point in the history
  • Loading branch information
lancespeelmon committed Feb 26, 2015
1 parent 638d9ea commit 0be4007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ Logger.prototype.log = function (level) {
//
function emit(name, next) {
var transport = self.transports[name];
if ((transport.level && self.levels[transport.level] <= self.levels[level])
|| (!transport.level && self.levels[self.level] <= self.levels[level])) {
if ((transport.level && self.levels[transport.level] >= self.levels[level])
|| (!transport.level && self.levels[self.level] >= self.levels[level])) {
transport.log(level, msg, meta, function (err) {
if (err) {
err.transport = transport;
Expand Down

0 comments on commit 0be4007

Please sign in to comment.