From a600feb5dea3ea5b2a8a827e8782118d3d718663 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 19 May 2020 10:57:33 +0100 Subject: [PATCH] Move debug status text length check to just before dsiplay. --- packages/node_modules/@node-red/nodes/core/common/21-debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); }); }