From 502d9aad195d82c63081ee21023b8b20d3aeda20 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 14 May 2026 11:40:48 +0200 Subject: [PATCH] plugin XEP-0313: Fix elements dump in the warning: The use of `pp_elt` was printing the element instead of showing them in the warning message. --- libervia/backend/plugins/plugin_xep_0313.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libervia/backend/plugins/plugin_xep_0313.py b/libervia/backend/plugins/plugin_xep_0313.py index a0c7fc49..4ccdf834 100644 --- a/libervia/backend/plugins/plugin_xep_0313.py +++ b/libervia/backend/plugins/plugin_xep_0313.py @@ -179,8 +179,8 @@ class XEP_0313: except StanzaError as e: log.warning( f"Can't retrieve MAM archives: {e}\n" - f"{xml_tools.pp_elt(mam_req.toElement())}\n" - f"{xml_tools.pp_elt(e.iq.toElement()) if e.iq else ''}" + f"{xml_tools.p_fmt_elt(mam_req.toElement())}\n" + f"{xml_tools.p_fmt_elt(e.iq.toElement()) if e.iq else ''}" ) return except Exception as e: