mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
catch permissions errors and display owner+user information
This commit is contained in:
parent
9c50f154fd
commit
e36d5f2c01
2 changed files with 12 additions and 3 deletions
|
@ -29,7 +29,7 @@ import sys
|
|||
import time
|
||||
from typing import ClassVar, Iterator, Optional, Type
|
||||
|
||||
from radicale import config
|
||||
from radicale import config, pathutils, utils
|
||||
from radicale.log import logger
|
||||
from radicale.storage.multifilesystem.base import CollectionBase, StorageBase
|
||||
from radicale.storage.multifilesystem.cache import CollectionPartCache
|
||||
|
@ -187,6 +187,9 @@ class Storage(
|
|||
logger.info("Storage item mtime resolution test result: %d %s" % (precision_unit, unit))
|
||||
if self._use_mtime_and_size_for_item_cache is False:
|
||||
logger.info("Storage cache using mtime and size for 'item' may be an option in case of performance issues")
|
||||
except PermissionError as e:
|
||||
logger.error("Directory permissions: %s / Effective user: %s", pathutils.path_permissions_as_string(self._get_collection_root_folder()), utils.user_groups_as_string())
|
||||
raise e
|
||||
except Exception:
|
||||
logger.warning("Storage item mtime resolution test result not successful")
|
||||
logger.debug("Storage cache action logging: %s", self._debug_cache_actions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue