mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
make exec node logging consistent with itself. (only be verbose when in verbose mode)
This commit is contained in:
parent
1c63d7ff31
commit
9ba9998bd6
@ -145,7 +145,7 @@ module.exports = function(RED) {
|
|||||||
if (error.signal) { msg3.payload.signal = error.signal; }
|
if (error.signal) { msg3.payload.signal = error.signal; }
|
||||||
if (error.code === null) { node.status({fill:"red",shape:"dot",text:"killed"}); }
|
if (error.code === null) { node.status({fill:"red",shape:"dot",text:"killed"}); }
|
||||||
else { node.status({fill:"red",shape:"dot",text:"error:"+error.code}); }
|
else { node.status({fill:"red",shape:"dot",text:"error:"+error.code}); }
|
||||||
node.log('error:' + error);
|
if (RED.settings.verbose) { node.log('error:' + error); }
|
||||||
}
|
}
|
||||||
else if (node.oldrc === "false") {
|
else if (node.oldrc === "false") {
|
||||||
msg3 = RED.util.cloneMessage(msg);
|
msg3 = RED.util.cloneMessage(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user