From 5dda0af7c782612d47202207e7bd8895f149f199 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Wed, 8 Apr 2026 21:44:19 +0200 Subject: [PATCH] log/config parser: permit all available log levels --- radicale/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/config.py b/radicale/config.py index 489bf5d8..f7179bad 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -37,7 +37,8 @@ from configparser import RawConfigParser from typing import (Any, Callable, ClassVar, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union) -from radicale import auth, hook, rights, sharing, storage, types, utils, web +from radicale import (auth, hook, log, rights, sharing, storage, types, utils, + web) from radicale.hook import email from radicale.item import check_and_sanitize_props @@ -78,7 +79,7 @@ def rights_permission(value: Any) -> str: def logging_level(value: Any) -> str: - if value not in ("debug", "info", "warning", "error", "critical"): + if value not in log.LOG_LEVEL_OPTIONS: raise ValueError("unsupported level: %r" % value) return value