From 83e5d68be5ef052a9e78f66d7d13f7240cb79591 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 21 Nov 2024 08:57:31 +0100 Subject: [PATCH] fix logging --- internal/websocket/broadcast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/websocket/broadcast.go b/internal/websocket/broadcast.go index eb0aa69..f235ba9 100644 --- a/internal/websocket/broadcast.go +++ b/internal/websocket/broadcast.go @@ -29,7 +29,7 @@ func SendPermanentBroadCastMessage() { client.Conn.SetWriteDeadline(time.Now().Add(SEND_TIMEOUT * time.Second)) err := client.Conn.WriteMessage(websocket.TextMessage, jsonMessage) if err != nil { - helper.Logger.Info("Error broadcasting to client:", "msg", err, "host", client.RealIP, "clients", len(Clients)) + helper.Logger.Error("Error broadcasting to client:", "msg", err, "host", client.RealIP, "clients", len(Clients)) } } mu.Unlock()