Make strings expandable in debug

This commit is contained in:
Nick O'Leary
2016-11-02 15:12:30 +00:00
parent f0f40a8606
commit 06ee9aa05c
4 changed files with 75 additions and 205 deletions

View File

@@ -153,7 +153,7 @@ module.exports = function(RED) {
msg.format = (msg.msg === null)?"null":"undefined";
msg.msg = "(undefined)";
} else {
msg.format = "string ["+msg.msg.length+"]";
msg.format = "string["+msg.msg.length+"]";
if (msg.msg.length > debuglength) {
msg.msg = msg.msg.substring(0,debuglength)+"...";
}