From fdcbe6794110357a8d2fa3c997fcc7515c91f0da Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 11 Mar 2021 15:23:53 +0100 Subject: [PATCH] context: add info log about parsed config sections So that we can see what's being parsed or not. --- src/pipewire/context.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index e6382394e..daa193f97 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -237,8 +237,10 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop, } this->conf = conf; - if ((str = pw_properties_get(conf, "context.properties")) != NULL) + if ((str = pw_properties_get(conf, "context.properties")) != NULL) { pw_properties_update_string(properties, str, strlen(str)); + pw_log_info(NAME" %p: parsed context.properties section", this); + } if (getenv("PIPEWIRE_DEBUG") == NULL && (str = pw_properties_get(properties, "log.level")) != NULL) @@ -342,10 +344,14 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop, this->sc_pagesize = sysconf(_SC_PAGESIZE); - pw_context_parse_conf_section(this, conf, "context.spa-libs"); - pw_context_parse_conf_section(this, conf, "context.modules"); - pw_context_parse_conf_section(this, conf, "context.objects"); - pw_context_parse_conf_section(this, conf, "context.exec"); + if ((res = pw_context_parse_conf_section(this, conf, "context.spa-libs")) >= 0) + pw_log_info(NAME" %p: parsed context.spa-libs section", this); + if ((res = pw_context_parse_conf_section(this, conf, "context.modules")) >= 0) + pw_log_info(NAME" %p: parsed context.modules section", this); + if ((res = pw_context_parse_conf_section(this, conf, "context.objects")) >= 0) + pw_log_info(NAME" %p: parsed context.objects section", this); + if ((res = pw_context_parse_conf_section(this, conf, "context.exec")) >= 0) + pw_log_info(NAME" %p: parsed context.exec section", this); pw_log_debug(NAME" %p: created", this);