Display gateway url in error

This commit is contained in:
Bruce Marriner 2016-05-01 18:16:55 -05:00
parent a9da8a5daf
commit 5dc57e19c7

View file

@ -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()