more verbose accelerator websocket error logs
This commit is contained in:
		
							parent
							
								
									9a81db8e6c
								
							
						
					
					
						commit
						ffa582558b
					
				| @ -257,7 +257,11 @@ class AccelerationApi { | |||||||
|         }); |         }); | ||||||
| 
 | 
 | ||||||
|         this.ws.on('error', (error) => { |         this.ws.on('error', (error) => { | ||||||
|           logger.err(`Acceleration websocket error on ${this.websocketPath}: ` + error); |           let errMsg = `Acceleration websocket error on ${this.websocketPath}: ${error['code']}`; | ||||||
|  |           if (error['errors']) { | ||||||
|  |             errMsg += ' - ' + error['errors'].join(' - '); | ||||||
|  |           } | ||||||
|  |           logger.err(errMsg); | ||||||
|           this.ws = null; |           this.ws = null; | ||||||
|           this.websocketConnected = false; |           this.websocketConnected = false; | ||||||
|         }); |         }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user