mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix debug reporting of warning/errors
This commit is contained in:
parent
8eb1a02407
commit
83dad88ad3
@ -113,7 +113,7 @@ module.exports = function(RED) {
|
||||
|
||||
DebugNode.logHandler = new events.EventEmitter();
|
||||
DebugNode.logHandler.on("log",function(msg) {
|
||||
if (msg.level === "warn" || msg.level === "error") {
|
||||
if (msg.level === RED.log.WARN || msg.level === RED.log.ERROR) {
|
||||
sendDebug(msg);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user