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.
This commit is contained in:
Goffi 2026-05-14 11:40:48 +02:00
commit 502d9aad19

View file

@ -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: