handler: include event in error.

This commit is contained in:
Miroslav Šedivý 2021-03-16 10:22:03 +01:00
parent 0270939ee2
commit 3b0c16b308

View File

@ -113,7 +113,7 @@ func (h *MessageHandlerCtx) Message(session types.Session, raw []byte) bool {
} }
if err != nil { 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 return true