]> git.ipfire.org Git - pakfire.git/commitdiff
python: ctx: Always forward all messages to the logger
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Mar 2025 10:38:40 +0000 (10:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Mar 2025 10:38:40 +0000 (10:38 +0000)
We will let the Python logger filter out what we don't need.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/ctx.c

index ab9a6debbee58abb6fad84f2330bc995e4d67187..a3f22d0a78dc5218b930b32014b821fc143558b7 100644 (file)
@@ -135,6 +135,9 @@ static void Ctx___set_logger(CtxObject* self, PyObject* logger) {
 
        // Set the logger
        pakfire_ctx_set_log_callback(self->ctx, Ctx_log_callback, self->logger);
+
+       // Request everything and filter out later
+       pakfire_ctx_set_log_level(self->ctx, LOG_DEBUG);
 }
 
 static int Ctx_setup_logging(CtxObject* self) {