fix logging

This commit is contained in:
Sebastian Mark 2024-11-21 08:57:31 +01:00
parent 58ac2d2950
commit 19df804235

View file

@ -28,7 +28,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()