1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +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

@ -145,6 +145,8 @@ def read_request_body(configuration: "config.Configuration",
read_raw_request_body(configuration, environ))
if configuration.get("logging", "request_content_on_debug"):
logger.debug("Request content:\n%s", content)
else:
logger.debug("Request content: suppressed by config/option [auth] request_content_on_debug")
return content