diff --git a/radicale/app/put.py b/radicale/app/put.py index cf2a15fb6..ec433db2d 100644 --- a/radicale/app/put.py +++ b/radicale/app/put.py @@ -133,7 +133,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, try: content = httputils.read_request_body(self.configuration, environ) except RuntimeError as e: - logger.warning("Bad PUT request on %r: %s", path, e, exc_info=True) + logger.warning("Bad PUT request on %r (read_request_body): %s", path, e, exc_info=True) return httputils.BAD_REQUEST except socket.timeout: logger.debug("Client timed out", exc_info=True) @@ -145,7 +145,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, vobject_items = radicale_item.read_components(content or "") except Exception as e: logger.warning( - "Bad PUT request on %r: %s", path, e, exc_info=True) + "Bad PUT request on %r (read_components): %s", path, e, exc_info=True) return httputils.BAD_REQUEST (prepared_items, prepared_tag, prepared_write_whole_collection, prepared_props, prepared_exc_info) = prepare( @@ -199,7 +199,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, props = prepared_props if prepared_exc_info: logger.warning( - "Bad PUT request on %r: %s", path, prepared_exc_info[1], + "Bad PUT request on %r (prepare): %s", path, prepared_exc_info[1], exc_info=prepared_exc_info) return httputils.BAD_REQUEST @@ -216,7 +216,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, self._hook.notify(hook_notification_item) except ValueError as e: logger.warning( - "Bad PUT request on %r: %s", path, e, exc_info=True) + "Bad PUT request on %r (create_collection): %s", path, e, exc_info=True) return httputils.BAD_REQUEST else: assert not isinstance(item, storage.BaseCollection) @@ -238,7 +238,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str, self._hook.notify(hook_notification_item) except ValueError as e: logger.warning( - "Bad PUT request on %r: %s", path, e, exc_info=True) + "Bad PUT request on %r (upload): %s", path, e, exc_info=True) return httputils.BAD_REQUEST headers = {"ETag": etag}