Logger does not use the log.* values from the configuration file
In pipewire.conf, I set log.level
for example to 3 . When I inspect the info spa_dict that the logger's impl_init gets (in spa/plugins/support/logger.c
), I see that that dict does not contain the value I set.
The cause seems to be related to the pipewire initialization. In src/pipewire/pipewire.c
, an if (pw_log_is_default())
check can be found. This one is always true, since at that point, the default logger is always the one that is active. Consequently, that if-block will set its own default value for log.level
and others.
This seems like a bug where the configuration is not read / evaluated at the right time.
As a workaround, the PIPEWIRE_LOG
and PIPEWIRE_DEBUG
environment values can be used. These do work.