mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Add: option [debug] storage_cache_action for conditional logging
This commit is contained in:
parent
05b8172f8f
commit
a7ce8f032c
9 changed files with 33 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
|||
# This file is part of Radicale - CalDAV and CardDAV server
|
||||
# Copyright © 2014 Jean-Marc Martins
|
||||
# Copyright © 2012-2017 Guillaume Ayoub
|
||||
# Copyright © 2017-2018 Unrud <unrud@outlook.com>
|
||||
# Copyright © 2017-2021 Unrud <unrud@outlook.com>
|
||||
# Copyright © 2024-2024 Peter Bieringer <pb@bieringer.de>
|
||||
#
|
||||
# This library is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -24,6 +25,7 @@ import radicale.item as radicale_item
|
|||
from radicale import pathutils
|
||||
from radicale.storage import multifilesystem
|
||||
from radicale.storage.multifilesystem.base import StorageBase
|
||||
from radicale.log import logger
|
||||
|
||||
|
||||
class StoragePartCreateCollection(StorageBase):
|
||||
|
@ -36,6 +38,7 @@ class StoragePartCreateCollection(StorageBase):
|
|||
# Path should already be sanitized
|
||||
sane_path = pathutils.strip_path(href)
|
||||
filesystem_path = pathutils.path_to_filesystem(folder, sane_path)
|
||||
logger.debug("Create collection: %r" % filesystem_path)
|
||||
|
||||
if not props:
|
||||
self._makedirs_synced(filesystem_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue