plugin XEP-0374, XEP-0384: use debug instead of warning logs:

Those cases are expected on semi-anonymous rooms, thus a warning is inappropriate.
This commit is contained in:
Goffi 2026-06-20 15:06:55 +02:00
commit a909d99fa9
2 changed files with 8 additions and 4 deletions

View file

@ -176,7 +176,8 @@ class XEP_0374:
sender_user = cast(Optional[muc.User], room.getUser(sender_jid.resource))
if sender_user is None:
log.warning(
# This is expected when presence broadcast is restricted for the sender's role
log.debug(
f"Ignoring MUC message from room {room_jid} since the sender's user"
f" wasn't found {sender_jid.resource}"
)
@ -185,7 +186,8 @@ class XEP_0374:
sender_user_jid = cast(Optional[jid.JID], sender_user.entity)
if sender_user_jid is None:
log.warning(
# This is expected in semi-anonymous rooms
log.debug(
f"Ignoring MUC message from room {room_jid} since the sender's bare"
f" JID couldn't be found from its user information: {sender_user}"
)

View file

@ -2205,7 +2205,8 @@ class OMEMO:
sender_user = cast(Optional[muc.User], room.getUser(sender_jid.resource))
if sender_user is None:
log.warning(
# This is expected when presence broadcast is restricted for the sender's role
log.debug(
f"Ignoring MUC message from room {room_jid} since the sender's user"
f" wasn't found {sender_jid.resource}"
)
@ -2214,7 +2215,8 @@ class OMEMO:
sender_user_jid = cast(Optional[jid.JID], sender_user.entity)
if sender_user_jid is None:
log.warning(
# This is expected in semi-anonymous rooms
log.debug(
f"Ignoring MUC message from room {room_jid} since the sender's bare"
f" JID couldn't be found from its user information: {sender_user}"
)