A/usr/local/etc/profile.d/bash_completion.shctually enable debug logs if requested

I noticed that when enabling debug logs, the level doesn't actually get set. This should fix that.
Signed-off-by: Wim Fournier <git@fournier.nl>
This commit is contained in:
Wim Fournier 2024-12-20 12:05:33 +01:00 committed by wim.fournier
parent 9c44291da2
commit 4a087e67f9
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def configure(level: Level = Level.INFO) -> None:
structlog.processors.EventRenamer(to="msg"),
structlog.processors.JSONRenderer(),
],
wrapper_class=structlog.make_filtering_bound_logger(logging.INFO),
wrapper_class=structlog.make_filtering_bound_logger(logging.DEBUG if level == Level.DEBUG else logging.INFO),
)