Websocket client errors as Warns, broken pipe errors as Trace (#656)
* Websocket client errors now logged as Warns broken pipe errors now logged as Trace * additional space for broken pipe logs
This commit is contained in:
parent
1fef9cf045
commit
401995c52e
@ -115,7 +115,7 @@ func (c *Client) listenWrite() {
|
||||
}
|
||||
|
||||
func (c *Client) handleClientSocketError(err error) {
|
||||
log.Errorln("Websocket client error: ", err.Error())
|
||||
log.Warnln("Websocket client error: ", err.Error())
|
||||
_server.removeClient(c)
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ func (s *server) Listen() {
|
||||
fmt.Println("PING?", ping)
|
||||
|
||||
case err := <-s.errCh:
|
||||
log.Error("Error:", err.Error())
|
||||
log.Trace("Error: ", err.Error())
|
||||
|
||||
case <-s.doneCh:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user