mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
log: don't re-initialize the log level in pw_init()
This allows setting the log level without setting PIPEWIRE_DEBUG prior to pw_init(). Setting it after is also possible, but we get to miss some messages that are printed from pw_init()
This commit is contained in:
parent
f06a884f29
commit
5aea6252b4
2 changed files with 1 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
SPA_LOG_IMPL(default_log);
|
SPA_LOG_IMPL(default_log);
|
||||||
|
|
||||||
#define DEFAULT_LOG_LEVEL SPA_LOG_LEVEL_ERROR
|
#define DEFAULT_LOG_LEVEL SPA_LOG_LEVEL_WARN
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
enum spa_log_level pw_log_level = DEFAULT_LOG_LEVEL;
|
enum spa_log_level pw_log_level = DEFAULT_LOG_LEVEL;
|
||||||
|
|
|
||||||
|
|
@ -368,8 +368,6 @@ void pw_init(int *argc, char **argv[])
|
||||||
|
|
||||||
if ((str = getenv("PIPEWIRE_DEBUG")))
|
if ((str = getenv("PIPEWIRE_DEBUG")))
|
||||||
configure_debug(support, str);
|
configure_debug(support, str);
|
||||||
else
|
|
||||||
pw_log_set_level(SPA_LOG_LEVEL_WARN);
|
|
||||||
|
|
||||||
if ((str = getenv("SPA_PLUGIN_DIR")) == NULL)
|
if ((str = getenv("SPA_PLUGIN_DIR")) == NULL)
|
||||||
str = PLUGINDIR;
|
str = PLUGINDIR;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue