mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 06:38:01 +02:00
wp: log warning if PIPEWIRE_DEBUG env variable could not be set
This commit is contained in:
parent
a65f3bb44e
commit
5b4b360b1c
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ wp_init (WpInitFlags flags)
|
|||
if (g_getenv ("WIREPLUMBER_DEBUG")) {
|
||||
gchar lvl_str[2];
|
||||
g_snprintf (lvl_str, 2, "%d", wp_spa_log_get_instance ()->level);
|
||||
g_setenv ("PIPEWIRE_DEBUG", lvl_str, TRUE);
|
||||
g_warn_if_fail (g_setenv ("PIPEWIRE_DEBUG", lvl_str, TRUE));
|
||||
}
|
||||
pw_log_set (wp_spa_log_get_instance ());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue