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

@ -149,6 +149,8 @@ class ApplicationPartPut(ApplicationBase):
"Bad PUT request on %r (read_components): %s", path, e, exc_info=True)
if self._log_bad_put_request_content:
logger.warning("Bad PUT request content of %r:\n%s", path, content)
else:
logger.debug("Bad PUT request content: suppressed by config/option [auth] bad_put_request_content")
return httputils.BAD_REQUEST
(prepared_items, prepared_tag, prepared_write_whole_collection,
prepared_props, prepared_exc_info) = prepare(