From 4a087e67f90062d9ae43ac7dfb18deda37f9f512 Mon Sep 17 00:00:00 2001 From: Wim Fournier Date: Fri, 20 Dec 2024 12:05:33 +0100 Subject: [PATCH] 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 --- crossplane/function/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossplane/function/logging.py b/crossplane/function/logging.py index 60b3c81..5faa15e 100644 --- a/crossplane/function/logging.py +++ b/crossplane/function/logging.py @@ -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), )