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);
|
util.inherits(LogHandler, EventEmitter);
|
||||||
|
|
||||||
LogHandler.prototype.shouldReportMessage = function(msglevel) {
|
LogHandler.prototype.shouldReportMessage = function(msglevel) {
|
||||||
return msglevel <= this.logLevel ||
|
return (msglevel == log.METRIC && this.metricsOn) ||
|
||||||
(msglevel == log.METRIC && this.metricsOn) ||
|
(msglevel == log.AUDIT && this.auditOn) ||
|
||||||
(msglevel == log.AUDIT && this.auditOn);
|
msglevel <= this.logLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
var consoleLogger = function(msg) {
|
var consoleLogger = function(msg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user