Skip to content

Commit

Permalink
Support radicale 3.2.2
Browse files Browse the repository at this point in the history
- add changes to log.set_level() from upstream radicale update
(additional second arg - backtrace_on_debug):
https://www.github.com/Kozea/Radicale/pull/1519
  • Loading branch information
ghpzin authored and tasn committed Sep 2, 2024
1 parent f9032e5 commit 3822beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etesync_dav/radicale_main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def run(passed_args=None):
args.logging_level = "debug"
with contextlib.suppress(ValueError):
log.set_level(config.DEFAULT_CONFIG_SCHEMA["logging"]["level"]["type"](
args.logging_level))
args.logging_level), True)

# Update Radicale configuration according to arguments
arguments_config = {}
Expand All @@ -133,7 +133,7 @@ def run(passed_args=None):
sys.exit(1)

# Configure logging
log.set_level(configuration.get("logging", "level"))
log.set_level(configuration.get("logging", "level"), configuration.get("logging", "backtrace_on_debug"))

# Log configuration after logger is configured
for source, miss in configuration.sources():
Expand Down

0 comments on commit 3822beb

Please sign in to comment.