Add warning log when messages are dropped

This commit is contained in:
Tulir Asokan 2024-02-29 13:38:50 +02:00
parent 8b4f19fd2f
commit ca0e0a09a1

View file

@ -299,6 +299,7 @@ var (
func (portal *Portal) handleMessageLoopItem(msg PortalMessage) { func (portal *Portal) handleMessageLoopItem(msg PortalMessage) {
if len(portal.MXID) == 0 { if len(portal.MXID) == 0 {
portal.zlog.Warn().Str("message_id", msg.evt.MessageID).Msg("Dropping message as portal is not yet created")
return return
} }
portal.forwardBackfillLock.Lock() portal.forwardBackfillLock.Lock()