From e5584c8f6c1d7abe7a4e2ae2747eba1f5ad3553e Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 9 Mar 2026 17:55:50 +0100 Subject: [PATCH] sharing: reorg/log --- radicale/sharing/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/radicale/sharing/__init__.py b/radicale/sharing/__init__.py index 4e1ddd15..66f30e77 100644 --- a/radicale/sharing/__init__.py +++ b/radicale/sharing/__init__.py @@ -533,12 +533,14 @@ class BaseSharing: return httputils.NOT_FOUND # check for enabled ShareTypes - if not self.sharing_collection_by_map and ShareType == "map": - # API "map" is not enabled - return httputils.NOT_FOUND - if not self.sharing_collection_by_token and ShareType == "token": # API "token" is not enabled + logger.warning(api_info + ": not enabled by config (collection_by_token)") + return httputils.NOT_FOUND + + if not self.sharing_collection_by_map and ShareType == "map": + # API "map" is not enabled + logger.warning(api_info + ": not enabled by config (collection_by_map)") return httputils.NOT_FOUND # check for valid API hooks