From e088dd2d2f893013a577e3f48fd2bfaa35baa5af Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Jan 2024 13:57:26 +0100 Subject: [PATCH] journal: copy log level to chained logger Make sure the log level on the chained logger is the same as ours. Makes PIPEWIRE_DEBUG=3 make run print debug again. This used to work because the log level was parsed and set before the loggers were created and chained, and so they all got the same level. Now that the level can be changed with metadata at runtime, we can't really update all past loggers so let the journal logger copy the level itself. --- spa/plugins/support/journal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/support/journal.c b/spa/plugins/support/journal.c index 7f1b425a9..fdc865625 100644 --- a/spa/plugins/support/journal.c +++ b/spa/plugins/support/journal.c @@ -53,6 +53,7 @@ impl_log_logtv(void *object, if (impl->chain_log != NULL) { va_list args_copy; va_copy(args_copy, args); + impl->chain_log->level = impl->log.level; spa_log_logtv(impl->chain_log, level, topic, file, line, func, fmt, args_copy);