diff --git a/internal/websocket/staleClients.go b/internal/websocket/staleClients.go index 58acea2..9d9d713 100644 --- a/internal/websocket/staleClients.go +++ b/internal/websocket/staleClients.go @@ -3,6 +3,7 @@ package websocket import ( "time" + "git.smsvc.net/pomodoro/GoTomato/internal/helper" "git.smsvc.net/pomodoro/GoTomato/pkg/models" "github.com/gorilla/websocket" ) @@ -33,6 +34,7 @@ func RemoveStaleClients() { if !sendPing(client) || isStale(client) { client.Conn.Close() delete(Clients, client.Conn.LocalAddr()) + helper.Logger.Info("Removed stale client", "host", client.RealIP) } } mu.Unlock()