Log unexpected data

This commit is contained in:
Tulir Asokan 2023-08-21 12:10:16 +03:00
parent 16b1f5d0c9
commit 8140abedd5

View file

@ -201,9 +201,11 @@ func (c *Client) handleUpdatesEvent(msg *IncomingRPCMessage) {
c.triggerEvent(evt.TypingEvent.GetData()) c.triggerEvent(evt.TypingEvent.GetData())
default: 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: 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")
} }
} }