From 5f79b089c8076035c9541accd53c259df18da4e7 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 15 Dec 2024 12:21:39 +0100 Subject: [PATCH] fix option name --- CHANGELOG.md | 2 +- DOCUMENTATION.md | 4 ++-- config | 4 ++-- radicale/config.py | 2 +- radicale/storage/multifilesystem/base.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b38513a..63ee7acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ * Improve: log important module versions on startup * Improve: auth.ldap config shown on startup, terminate in case no password is supplied for bind user * Add: option [auth] uc_username for uppercase conversion (similar to existing lc_username) -* Add: option [debug] storage_cache_action for conditional logging +* Add: option [logging] storage_cache_action_on_debug for conditional logging * Fix: set PRODID on collection upload (instead of vobject is inserting default one) * Add: option [storage] use_mtime_and_size_for_item_cache for changing cache lookup from SHA256 to mtime_ns + size * Fix: buggy cache file content creation on collection upload diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index d2dce4e7..cf8b8058 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1180,9 +1180,9 @@ Log rights rule which doesn't match on level=debug Default: `False` -##### #storage_cache_actions +##### storage_cache_actions_on_debug -Log storage cache actions +Log storage cache actions on level=debug Default: `False` diff --git a/config b/config index c8e9802b..9d30509e 100644 --- a/config +++ b/config @@ -231,8 +231,8 @@ # Log rights rule which doesn't match on level=debug #rights_rule_doesnt_match_on_debug = False -# Log storage cache actions -#storage_cache_actions = False +# Log storage cache actions on level=debug +#storage_cache_actions_on_debug = False [headers] diff --git a/radicale/config.py b/radicale/config.py index 73b04dc4..0ac5970c 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -380,7 +380,7 @@ def json_str(value: Any) -> dict: "value": "False", "help": "log rights rules which doesn't match on level=debug", "type": bool}), - ("storage_cache_actions", { + ("storage_cache_actions_on_debug", { "value": "False", "help": "log storage cache action on level=debug", "type": bool}), diff --git a/radicale/storage/multifilesystem/base.py b/radicale/storage/multifilesystem/base.py index dc013b34..394e89bf 100644 --- a/radicale/storage/multifilesystem/base.py +++ b/radicale/storage/multifilesystem/base.py @@ -98,7 +98,7 @@ def __init__(self, configuration: config.Configuration) -> None: self._folder_umask = configuration.get( "storage", "folder_umask") self._debug_cache_actions = configuration.get( - "logging", "storage_cache_actions") + "logging", "storage_cache_actions_on_debug") def _get_collection_root_folder(self) -> str: return os.path.join(self._filesystem_folder, "collection-root")