Skip to content

Commit

Permalink
Demote "unresponsive web socket" to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhpedersen committed Mar 27, 2024
1 parent b518889 commit 7940f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket_hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (w *WSHub) WriteJSON(v interface{}) {
select {
case c.out <- v:
case <-time.After(3 * time.Second):
log.Println("Closing one unresponsive web socket")
debug.Printf("Closing one unresponsive web socket")
c.conn.Close()
delete(w.pool, c)
}
Expand Down

0 comments on commit 7940f62

Please sign in to comment.