1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

add suppress log messages

This commit is contained in:
Peter Bieringer 2024-06-18 08:24:25 +02:00
parent d83885d108
commit defa767c8a
4 changed files with 11 additions and 1 deletions

View file

@ -75,6 +75,8 @@ class ApplicationBase:
if self._response_content_on_debug:
logger.debug("Response content:\n%s",
xmlutils.pretty_xml(xml_content))
else:
logger.debug("Response content: suppressed by config/option [auth] response_content_on_debug")
f = io.BytesIO()
ET.ElementTree(xml_content).write(f, encoding=self._encoding,
xml_declaration=True)