mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
tidy up logging on Stomp node
This commit is contained in:
parent
3691bc6294
commit
f2dd4ae062
@ -104,7 +104,6 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
node.client.on("disconnect", function() {
|
node.client.on("disconnect", function() {
|
||||||
node.status({fill:"red",shape:"ring",text:"disconnected"},true);
|
node.status({fill:"red",shape:"ring",text:"disconnected"},true);
|
||||||
node.log("disconnected at "+Date().toString());
|
|
||||||
if (!closing) {
|
if (!closing) {
|
||||||
setTimeout( function () { doConnect(); }, 15000);
|
setTimeout( function () { doConnect(); }, 15000);
|
||||||
}
|
}
|
||||||
@ -112,7 +111,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
node.client.on("error", function(error) {
|
node.client.on("error", function(error) {
|
||||||
node.status({fill:"grey",shape:"dot",text:"error"},true);
|
node.status({fill:"grey",shape:"dot",text:"error"},true);
|
||||||
node.log("error: "+error);
|
node.log(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
doConnect();
|
doConnect();
|
||||||
@ -158,7 +157,6 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
node.client.on("disconnect", function() {
|
node.client.on("disconnect", function() {
|
||||||
node.status({fill:"red",shape:"ring",text:"disconnected"},true);
|
node.status({fill:"red",shape:"ring",text:"disconnected"},true);
|
||||||
node.log("disconnected at "+Date().toString());
|
|
||||||
if (!closing) {
|
if (!closing) {
|
||||||
setTimeout( function () { node.client.connect(); }, 15000);
|
setTimeout( function () { node.client.connect(); }, 15000);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user