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