From d0e283f1a956c39859985edea7607b9fd0676649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 9 Sep 2021 22:51:24 +0200 Subject: [PATCH] do not log info about FE log messages. --- internal/websocket/manager.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/websocket/manager.go b/internal/websocket/manager.go index 26bb9b99..5a347425 100644 --- a/internal/websocket/manager.go +++ b/internal/websocket/manager.go @@ -245,11 +245,13 @@ func (manager *WebSocketManagerCtx) handle(connection *websocket.Conn, session t break } - logger.Debug(). - Str("address", connection.RemoteAddr().String()). - Str("event", data.Event). - Str("payload", string(data.Payload)). - Msg("received message from client") + if data.Event != event.SYSTEM_LOGS { + logger.Debug(). + Str("address", connection.RemoteAddr().String()). + Str("event", data.Event). + Str("payload", string(data.Payload)). + Msg("received message from client") + } handled := manager.handler.Message(session, data) for _, handler := range manager.handlers {