1
0
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:
Nick O'Leary 2015-02-07 19:29:43 +00:00
parent 8eb1a02407
commit 83dad88ad3

View File

@ -113,7 +113,7 @@ module.exports = function(RED) {
DebugNode.logHandler = new events.EventEmitter(); DebugNode.logHandler = new events.EventEmitter();
DebugNode.logHandler.on("log",function(msg) { 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); sendDebug(msg);
} }
}); });