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:
parent
09848498cd
commit
a909d99fa9
2 changed files with 8 additions and 4 deletions
|
|
@ -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}"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue