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) {
|
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()
|
||||||
|
|
Loading…
Reference in a new issue