diff --git a/packages/node_modules/@node-red/nodes/core/common/21-debug.js b/packages/node_modules/@node-red/nodes/core/common/21-debug.js index 397b3a30c..c3566faa6 100644 --- a/packages/node_modules/@node-red/nodes/core/common/21-debug.js +++ b/packages/node_modules/@node-red/nodes/core/common/21-debug.js @@ -104,7 +104,6 @@ module.exports = function(RED) { if (err) { node.error(err); return; } var output = debugMsg.msg; var st = (typeof output === 'string') ? output : util.inspect(output); - if (st.length > 32) { st = st.substr(0,32) + "..."; } var fill = "grey"; var shape = "dot"; if (node.statusType === "auto") { @@ -118,6 +117,7 @@ module.exports = function(RED) { if (msg.status.hasOwnProperty("text")) { st = msg.status.text; } } } + if (st.length > 32) { st = st.substr(0,32) + "..."; } node.status({fill:fill, shape:shape, text:st}); }); }