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:
parent
20a0051578
commit
e134d7f0b4
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue