media-session: make a few debug messages easier to understand

Especially with PIPEWIRE_LOG_LINE=false, those messages are too
confusing otherwise.
This commit is contained in:
Peter Hutterer 2021-09-30 08:36:01 +10:00 committed by Wim Taymans
parent 6c156cdbb4
commit 40eb9578d5
3 changed files with 5 additions and 4 deletions

View file

@ -126,7 +126,7 @@ handle_client(struct impl *impl, struct sm_object *object)
{
struct client *client;
pw_log_debug("%p: client", impl);
pw_log_debug("%p: new client '%u'", impl, object->id);
client = sm_object_add_data(object, SESSION_KEY, sizeof(struct client));
client->obj = (struct sm_client*)object;

View file

@ -198,7 +198,7 @@ handle_client(struct impl *impl, struct sm_object *object)
struct client *client;
const char *str;
pw_log_debug("%p: client %u", impl, object->id);
pw_log_debug("%p: new client '%u'", impl, object->id);
client = sm_object_add_data(object, SESSION_KEY, sizeof(struct client));
client->obj = (struct sm_client*)object;
@ -213,7 +213,7 @@ handle_client(struct impl *impl, struct sm_object *object)
(str = pw_properties_get(client->obj->obj.props, PW_KEY_CLIENT_ACCESS)) != NULL) &&
spa_streq(str, "portal")) {
client->portal_managed = true;
pw_log_info("%p: portal managed client %d added",
pw_log_info("%p: portal-managed client %d added",
impl, client->id);
}
return 1;

View file

@ -2534,6 +2534,7 @@ int main(int argc, char *argv[])
return 0;
}
pw_log_info("media-session context properties:");
spa_dict_for_each(item, &impl.this.props->dict)
pw_log_info(" '%s' = '%s'", item->key, item->value);
@ -2588,7 +2589,7 @@ int main(int argc, char *argv[])
for (i = 0; i < SPA_N_ELEMENTS(modules); i++) {
const char *name = modules[i].name;
if (is_module_enabled(&impl, name)) {
pw_log_info("enable: %s", name);
pw_log_info("enabling media session module: %s", name);
modules[i].start(&impl.this);
}
}