From f2dd4ae062039991312de9a67829f1252b8c7aa6 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Thu, 29 May 2014 18:32:20 +0100 Subject: [PATCH] tidy up logging on Stomp node --- io/stomp/18-stomp.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index 0120cfed..f2c56eec 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -104,7 +104,6 @@ module.exports = function(RED) { node.client.on("disconnect", function() { node.status({fill:"red",shape:"ring",text:"disconnected"},true); - node.log("disconnected at "+Date().toString()); if (!closing) { setTimeout( function () { doConnect(); }, 15000); } @@ -112,7 +111,7 @@ module.exports = function(RED) { node.client.on("error", function(error) { node.status({fill:"grey",shape:"dot",text:"error"},true); - node.log("error: "+error); + node.log(error); }); doConnect(); @@ -158,7 +157,6 @@ module.exports = function(RED) { node.client.on("disconnect", function() { node.status({fill:"red",shape:"ring",text:"disconnected"},true); - node.log("disconnected at "+Date().toString()); if (!closing) { setTimeout( function () { node.client.connect(); }, 15000); }