Sfoglia il codice sorgente

Display gateway url in error

Bruce Marriner 8 anni fa
parent
commit
5dc57e19c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      wsapi.go

+ 1 - 1
wsapi.go

@@ -204,7 +204,7 @@ func (s *Session) listen(wsConn *websocket.Conn, listening <-chan interface{}) {
 
 			if sameConnection {
 
-				s.log(LogWarning, "error reading from websocket, %s", err)
+				s.log(LogWarning, "error reading from gateway %s websocket, %s", s.gateway, err)
 				// There has been an error reading, close the websocket so that
 				// OnDisconnect event is emitted.
 				err := s.Close()