add debug and trace to function node (#1654)

This commit is contained in:
Dave Conway-Jones
2018-03-20 20:40:36 +00:00
committed by Nick O'Leary
parent 2d52527fb4
commit 087cd121b8
2 changed files with 52 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ module.exports = function(RED) {
"log:__node__.log,"+
"error:__node__.error,"+
"warn:__node__.warn,"+
"debug:__node__.debug,"+
"trace:__node__.trace,"+
"on:__node__.on,"+
"status:__node__.status,"+
"send:function(msgs){ __node__.send(__msgid__,msgs);}"+
@@ -91,6 +93,12 @@ module.exports = function(RED) {
warn: function() {
node.warn.apply(node, arguments);
},
debug: function() {
node.debug.apply(node, arguments);
},
trace: function() {
node.trace.apply(node, arguments);
},
send: function(id, msgs) {
sendResults(node, id, msgs);
},