mirror of
https://github.com/node-red/node-red
synced 2024-11-23 17:23:56 +00:00
Enabling metric/audit logging takes precedence over level
This commit is contained in:
parent
4248d20f39
commit
f8853af902
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user