1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

tidy up logging on Stomp node

This commit is contained in:
Dave C-J 2014-05-29 18:32:20 +01:00
parent 3691bc6294
commit f2dd4ae062

View File

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