do not log info about FE log messages.

This commit is contained in:
Miroslav Šedivý 2021-09-09 22:51:24 +02:00
parent fb2c479325
commit d0e283f1a9

View File

@ -245,11 +245,13 @@ func (manager *WebSocketManagerCtx) handle(connection *websocket.Conn, session t
break break
} }
logger.Debug(). if data.Event != event.SYSTEM_LOGS {
Str("address", connection.RemoteAddr().String()). logger.Debug().
Str("event", data.Event). Str("address", connection.RemoteAddr().String()).
Str("payload", string(data.Payload)). Str("event", data.Event).
Msg("received message from client") Str("payload", string(data.Payload)).
Msg("received message from client")
}
handled := manager.handler.Message(session, data) handled := manager.handler.Message(session, data)
for _, handler := range manager.handlers { for _, handler := range manager.handlers {