diff --git a/red/log.js b/red/log.js index 749b2f092..8906704fc 100644 --- a/red/log.js +++ b/red/log.js @@ -61,9 +61,9 @@ var LogHandler = function(settings) { util.inherits(LogHandler, EventEmitter); LogHandler.prototype.shouldReportMessage = function(msglevel) { - return msglevel <= this.logLevel || - (msglevel == log.METRIC && this.metricsOn) || - (msglevel == log.AUDIT && this.auditOn); + return (msglevel == log.METRIC && this.metricsOn) || + (msglevel == log.AUDIT && this.auditOn) || + msglevel <= this.logLevel; } var consoleLogger = function(msg) {