1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

mod_private: Don't warn on conversion errors

Clients publish invalid bookmark elements in practice (e.g., bookmarks
with an empty <nick/> element).  The server admin can't address that
issue, so don't spam the log with warnings.
This commit is contained in:
Holger Weiss 2025-01-31 13:51:37 +01:00
parent 20a0051578
commit e134d7f0b4

View file

@ -340,7 +340,7 @@ publish_pep_native_bookmarks(JID, Data) ->
#bookmark_storage{conference = C} -> C; #bookmark_storage{conference = C} -> C;
_ -> [] _ -> []
catch _:{xmpp_codec, Why} -> catch _:{xmpp_codec, Why} ->
?WARNING_MSG("Failed to decode bookmarks of ~ts: ~ts", ?DEBUG("Failed to decode bookmarks of ~ts: ~ts",
[jid:encode(JID), xmpp:format_error(Why)]), [jid:encode(JID), xmpp:format_error(Why)]),
[] []
end, end,