Fix verbose logging change needed full restart

This commit is contained in:
Flowseal
2026-11-18 00:23:20 +03:00
parent c053b40014
commit 9f71904e1a
4 changed files with 14 additions and 8 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
"""Shared construction and formatting of the rotating log file handler.
"""Shared logging setup for the tray and CLI.
Centralizes the rotation invariant so both the tray and the CLI log paths
behave identically and the file can never grow without bound (issue #885).
@@ -18,6 +18,10 @@ _MIN_BYTES = 32 * 1024
_MIN_BACKUPS = 1
def set_verbose_logging(verbose: bool) -> None:
logging.getLogger().setLevel(logging.DEBUG if verbose else logging.INFO)
def build_log_handler(
path: str,
log_max_mb: float = 5,