1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Enabling metric/audit logging takes precedence over level

This commit is contained in:
Nick O'Leary 2015-06-02 16:23:38 +01:00
parent 4248d20f39
commit f8853af902

View File

@ -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) {