handler: log unknown event.

This commit is contained in:
Miroslav Šedivý 2021-03-16 10:25:13 +01:00
parent 3b0c16b308
commit 971e3bff4e

View File

@ -109,6 +109,7 @@ func (h *MessageHandlerCtx) Message(session types.Session, raw []byte) bool {
return h.sendBroadcast(session, payload)
})
default:
h.logger.Warn().Str("event", header.Event).Msg("unknown message event")
return false
}