Add warning log when messages are dropped
This commit is contained in:
parent
8b4f19fd2f
commit
ca0e0a09a1
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ var (
|
|||
|
||||
func (portal *Portal) handleMessageLoopItem(msg PortalMessage) {
|
||||
if len(portal.MXID) == 0 {
|
||||
portal.zlog.Warn().Str("message_id", msg.evt.MessageID).Msg("Dropping message as portal is not yet created")
|
||||
return
|
||||
}
|
||||
portal.forwardBackfillLock.Lock()
|
||||
|
|
Loading…
Reference in a new issue