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:
parent
d83885d108
commit
defa767c8a
4 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue