Skip to content

Commit

Permalink
align logging of path
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Nov 24, 2024
1 parent 37f7df2 commit 62e6aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radicale/app/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str,
return httputils.NOT_ALLOWED
if not self._permit_overwrite_collection:
if ("O") not in access.permissions:
logger.info("overwrite of collection is prevented by config/option [rights] permit_overwrite_collection and not explicit allowed by permssion 'O': %s", path)
logger.info("overwrite of collection is prevented by config/option [rights] permit_overwrite_collection and not explicit allowed by permssion 'O': %r", path)
return httputils.NOT_ALLOWED
else:
if ("o") in access.permissions:
logger.info("overwrite of collection is allowed by config/option [rights] permit_overwrite_collection but explicit forbidden by permission 'o': %s", path)
logger.info("overwrite of collection is allowed by config/option [rights] permit_overwrite_collection but explicit forbidden by permission 'o': %r", path)
return httputils.NOT_ALLOWED
elif "w" not in access.parent_permissions:
return httputils.NOT_ALLOWED
Expand Down

0 comments on commit 62e6aad

Please sign in to comment.