소스 검색

Display gateway url in error

Bruce Marriner 8 년 전
부모
커밋
5dc57e19c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()