mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
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:
parent
6c156cdbb4
commit
40eb9578d5
3 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue