Another logging tweak
This commit is contained in:
parent
266fe51028
commit
081024569e
@ -79,7 +79,7 @@ func (s *server) onConnection(ws *websocket.Conn) {
|
|||||||
client := NewClient(ws)
|
client := NewClient(ws)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
log.Printf("The client was connected for %s and sent %d messages (%s)", time.Since(client.ConnectedAt), client.MessageCount, client.id)
|
log.Trace("The client was connected for %s and sent %d messages (%s)", time.Since(client.ConnectedAt), client.MessageCount, client.id)
|
||||||
|
|
||||||
if err := ws.Close(); err != nil {
|
if err := ws.Close(); err != nil {
|
||||||
s.errCh <- err
|
s.errCh <- err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user