improve some debug logs

This commit is contained in:
George Kiagiadakis
2020-06-10 12:53:22 +03:00
parent 7a486f1f7c
commit 8d77793a2a
3 changed files with 7 additions and 2 deletions

View File

@@ -135,6 +135,7 @@ set_device_profile (WpProxy *device, gint index)
"Profile", "Profile",
"index", "i", index,
NULL);
wp_debug_object (device, "set profile %d", index);
wp_proxy_set_param (device, "Profile", profile);
}
@@ -145,6 +146,9 @@ on_device_added (WpObjectManager *om, WpProxy *proxy, gpointer d)
const gchar *device_api = wp_proxy_get_property (proxy, PW_KEY_DEVICE_API);
g_return_if_fail (device_api);
wp_debug_object (self, "device " WP_OBJECT_FORMAT " added, api '%s'",
WP_OBJECT_ARGS (proxy), device_api);
/* ALSA */
if (g_str_has_prefix (device_api, "alsa")) {
/* If "dbus" mode, let dbus handle the activation, otherwise activate */