mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Improvements to loggin messages & order
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a630442e3d
						
					
				
				
					commit
					e129c676ec
				
			@@ -188,10 +188,10 @@ module.exports = function(RED) {
 | 
				
			|||||||
                        node.closing = false;
 | 
					                        node.closing = false;
 | 
				
			||||||
                        node.connecting = false;
 | 
					                        node.connecting = false;
 | 
				
			||||||
                        node.connected = true;
 | 
					                        node.connected = true;
 | 
				
			||||||
                        callback();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        node.log("Connected to STOMP server", {sessionId: node.sessionId, url: `${node.options.address}:${node.options.port}`, protocolVersion: node.options.protocolVersion});
 | 
					                        node.log(`Connected to STOMP server, sessionId: ${node.sessionId}, url: ${node.options.address}:${node.options.port}, protocolVersion: ${node.options.protocolVersion}`);
 | 
				
			||||||
                        setStatusConnected(node, true);
 | 
					                        setStatusConnected(node, true);
 | 
				
			||||||
 | 
					                        callback();
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                    node.client.on("reconnect", function(sessionId, numOfRetries) {
 | 
					                    node.client.on("reconnect", function(sessionId, numOfRetries) {
 | 
				
			||||||
@@ -199,10 +199,10 @@ module.exports = function(RED) {
 | 
				
			|||||||
                        node.connecting = false;
 | 
					                        node.connecting = false;
 | 
				
			||||||
                        node.connected = true;
 | 
					                        node.connected = true;
 | 
				
			||||||
                        node.sessionId = sessionId;
 | 
					                        node.sessionId = sessionId;
 | 
				
			||||||
                        callback();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        node.log("Reconnected to STOMP server", {sessionId: node.sessionId, url: `${node.options.address}:${node.options.port}`, protocolVersion: node.options.protocolVersion, retries: numOfRetries});
 | 
					                        node.log(`Reconnected to STOMP server, sessionId: ${node.sessionId}, url: ${node.options.address}:${node.options.port}, protocolVersion: ${node.options.protocolVersion}, retries: ${numOfRetries}`);
 | 
				
			||||||
                        setStatusConnected(node, true);
 | 
					                        setStatusConnected(node, true);
 | 
				
			||||||
 | 
					                        callback();
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    node.client.on("reconnecting", function() {
 | 
					                    node.client.on("reconnecting", function() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user