From 3b0c16b30890fd3125eac86d4c9d5a0f2ab9b5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 16 Mar 2021 10:22:03 +0100 Subject: [PATCH] handler: include event in error. --- internal/websocket/handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/websocket/handler/handler.go b/internal/websocket/handler/handler.go index 6e8ac8df..fab9b25f 100644 --- a/internal/websocket/handler/handler.go +++ b/internal/websocket/handler/handler.go @@ -113,7 +113,7 @@ func (h *MessageHandlerCtx) Message(session types.Session, raw []byte) bool { } if err != nil { - h.logger.Error().Err(err).Msg("message handler has failed") + h.logger.Error().Err(err).Str("event", header.Event).Msg("message handler has failed") } return true