improve some debug logs
This commit is contained in:
@@ -556,10 +556,10 @@ wp_proxy_set_feature_ready (WpProxy * self, WpProxyFeatures feature)
|
|||||||
|
|
||||||
priv->ft_ready |= feature;
|
priv->ft_ready |= feature;
|
||||||
|
|
||||||
if (wp_log_level_is_enabled (G_LOG_LEVEL_DEBUG)) {
|
if (wp_log_level_is_enabled (WP_LOG_LEVEL_TRACE)) {
|
||||||
g_autofree gchar *str = g_flags_to_string (WP_TYPE_PROXY_FEATURES,
|
g_autofree gchar *str = g_flags_to_string (WP_TYPE_PROXY_FEATURES,
|
||||||
priv->ft_ready);
|
priv->ft_ready);
|
||||||
wp_debug_object (self, "features changed: %s", str);
|
wp_trace_object (self, "features changed: %s", str);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_notify (G_OBJECT (self), "features");
|
g_object_notify (G_OBJECT (self), "features");
|
||||||
|
@@ -135,6 +135,7 @@ set_device_profile (WpProxy *device, gint index)
|
|||||||
"Profile", "Profile",
|
"Profile", "Profile",
|
||||||
"index", "i", index,
|
"index", "i", index,
|
||||||
NULL);
|
NULL);
|
||||||
|
wp_debug_object (device, "set profile %d", index);
|
||||||
wp_proxy_set_param (device, "Profile", profile);
|
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);
|
const gchar *device_api = wp_proxy_get_property (proxy, PW_KEY_DEVICE_API);
|
||||||
g_return_if_fail (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 */
|
/* ALSA */
|
||||||
if (g_str_has_prefix (device_api, "alsa")) {
|
if (g_str_has_prefix (device_api, "alsa")) {
|
||||||
/* If "dbus" mode, let dbus handle the activation, otherwise activate */
|
/* If "dbus" mode, let dbus handle the activation, otherwise activate */
|
||||||
|
@@ -44,6 +44,7 @@ set_device_profile (WpProxy *device, gint index)
|
|||||||
"Profile", "Profile",
|
"Profile", "Profile",
|
||||||
"index", "i", index,
|
"index", "i", index,
|
||||||
NULL);
|
NULL);
|
||||||
|
wp_debug_object (device, "set profile %d", index);
|
||||||
wp_proxy_set_param (device, "Profile", profile);
|
wp_proxy_set_param (device, "Profile", profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user