1
0
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:
Dave Conway-Jones 2020-03-13 11:26:49 +00:00
parent 1c63d7ff31
commit 9ba9998bd6
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

@ -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);