diff --git a/lib/wp/core.c b/lib/wp/core.c index 1b43a6a7..dae44f96 100644 --- a/lib/wp/core.c +++ b/lib/wp/core.c @@ -300,7 +300,7 @@ wp_core_constructed (GObject *object) p = (struct pw_properties *) pw_context_get_properties (self->pw_context); if (!g_getenv("WIREPLUMBER_DEBUG") && (str = pw_properties_get(p, "log.level")) != NULL) { - if (!wp_log_set_global_level (str)) + if (!wp_log_set_level (str)) wp_warning ("ignoring invalid log.level in config file: %s", str); } diff --git a/lib/wp/log.c b/lib/wp/log.c index 2f5463ec..db601dc3 100644 --- a/lib/wp/log.c +++ b/lib/wp/log.c @@ -483,7 +483,7 @@ format_pw_log_level_string (gint level, const struct log_topic_pattern *patterns } gboolean -wp_log_set_global_level (const gchar *level_str) +wp_log_set_level (const gchar *level_str) { gint level; GLogLevelFlags flags; @@ -534,9 +534,9 @@ wp_log_init (gint flags) if (log_state.set_pw_log) pw_log_set (wp_spa_log_get_instance ()); - if (!wp_log_set_global_level (g_getenv ("WIREPLUMBER_DEBUG"))) { + if (!wp_log_set_level (g_getenv ("WIREPLUMBER_DEBUG"))) { wp_warning ("Ignoring invalid value in WIREPLUMBER_DEBUG"); - wp_log_set_global_level (NULL); + wp_log_set_level (NULL); } if (log_state.set_pw_log) { diff --git a/lib/wp/log.h b/lib/wp/log.h index 3d1c6b4c..c47d4ad1 100644 --- a/lib/wp/log.h +++ b/lib/wp/log.h @@ -24,7 +24,7 @@ WP_PRIVATE_API void wp_log_init (gint flags); WP_API -gboolean wp_log_set_global_level (const gchar *log_level); +gboolean wp_log_set_level (const gchar *log_level); typedef struct _WpLogTopic WpLogTopic; struct _WpLogTopic { diff --git a/modules/module-log-settings.c b/modules/module-log-settings.c index 33ff2b37..489f7cab 100644 --- a/modules/module-log-settings.c +++ b/modules/module-log-settings.c @@ -40,7 +40,7 @@ on_metadata_changed (WpMetadata *m, guint32 subject, return; if (spa_streq(key, "log.level")) - wp_log_set_global_level (value ? value : "2"); + wp_log_set_level (value ? value : "2"); } static void