Skip to content

Commit

Permalink
fix(Logger): logging level comparision
Browse files Browse the repository at this point in the history
Before the fix the logger would not log when the log level
equals it's level.
  • Loading branch information
paweldomas committed Nov 17, 2016
1 parent b914f1f commit 4043c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function getCallerInfo() {
function log() {
var logger = arguments[0], level = arguments[1],
args = Array.prototype.slice.call(arguments, 2);
if(levels[level] <= logger.level) {
if(levels[level] < logger.level) {
return;
}

Expand Down

0 comments on commit 4043c56

Please sign in to comment.