telepathy-mission-control: dispatcher: add more debug output when delegating channels
Jonny Lamb
jonny at kemper.freedesktop.org
Mon Jul 9 10:11:39 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: f037c639b5a14f94a1ca3fd9f3dcb92e455aabb5
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=f037c639b5a14f94a1ca3fd9f3dcb92e455aabb5
Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date: Fri Jul 6 16:49:55 2012 +0100
dispatcher: add more debug output when delegating channels
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
src/mcd-dispatcher.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index a8fc1d1..f856515 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2060,6 +2060,9 @@ try_delegating (ChannelToDelegate *to_delegate)
McdClientProxy *client;
GList *channels = NULL;
+ DEBUG ("%s",
+ mcd_channel_get_object_path (to_delegate->channel));
+
if (g_queue_get_length (to_delegate->handlers) == 0)
{
GValueArray *v;
@@ -2086,13 +2089,17 @@ try_delegating (ChannelToDelegate *to_delegate)
g_strdup (mcd_channel_get_object_path (to_delegate->channel)),
v);
+ DEBUG ("...but failed to delegate it: %s",
+ mcd_channel_get_object_path (to_delegate->channel),
+ to_delegate->error->message);
+
delegation_done (to_delegate);
return;
}
client = g_queue_pop_head (to_delegate->handlers);
- DEBUG ("Try delegating channels to %s", _mcd_client_proxy_get_unique_name (
+ DEBUG ("...trying client %s", _mcd_client_proxy_get_unique_name (
client));
channels = g_list_prepend (channels, to_delegate->channel);
@@ -2166,6 +2173,8 @@ dispatcher_delegate_channels (
guint i;
GList *l;
+ DEBUG ("called");
+
if (!check_preferred_handler (preferred_handler, &error))
goto error;
More information about the telepathy-commits
mailing list