From 8140abedd575d88344506791cd751b2823057381 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 21 Aug 2023 12:10:16 +0300 Subject: [PATCH] Log unexpected data --- libgm/event_handler.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libgm/event_handler.go b/libgm/event_handler.go index 41c8cf7..0bcb824 100644 --- a/libgm/event_handler.go +++ b/libgm/event_handler.go @@ -201,9 +201,11 @@ func (c *Client) handleUpdatesEvent(msg *IncomingRPCMessage) { c.triggerEvent(evt.TypingEvent.GetData()) default: - c.Logger.Trace().Any("evt", evt).Msg("Got unknown event type") + c.Logger.Warn(). + Str("evt_data", base64.StdEncoding.EncodeToString(msg.DecryptedData)). + Msg("Got unknown event type") } default: - c.Logger.Trace().Any("response", msg).Msg("Got unexpected response") + c.Logger.Debug().Str("action_type", msg.Message.Action.String()).Msg("Got unexpected response") } }