From e134d7f0b42888ee09edfee0d74820b29bc80b2b Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 31 Jan 2025 13:51:37 +0100 Subject: [PATCH] mod_private: Don't warn on conversion errors Clients publish invalid bookmark elements in practice (e.g., bookmarks with an empty element). The server admin can't address that issue, so don't spam the log with warnings. --- src/mod_private.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_private.erl b/src/mod_private.erl index ab8b0aa2c..3244f3515 100644 --- a/src/mod_private.erl +++ b/src/mod_private.erl @@ -340,8 +340,8 @@ publish_pep_native_bookmarks(JID, Data) -> #bookmark_storage{conference = C} -> C; _ -> [] catch _:{xmpp_codec, Why} -> - ?WARNING_MSG("Failed to decode bookmarks of ~ts: ~ts", - [jid:encode(JID), xmpp:format_error(Why)]), + ?DEBUG("Failed to decode bookmarks of ~ts: ~ts", + [jid:encode(JID), xmpp:format_error(Why)]), [] end, PubOpts = [{persist_items, true}, {access_model, whitelist}, {max_items, max}, {notify_retract,true}, {notify_delete,true}, {send_last_published_item, never}],