[telepathy-mission-control-5.12] telepathy-mission-control: dispatcher: add more debug output when delegating channels

Jonny Lamb jonny at kemper.freedesktop.org
Mon Jul 9 10:13:45 PDT 2012


Module: telepathy-mission-control
Branch: telepathy-mission-control-5.12
Commit: c8ae24ffd03297d097b553997eda3807f1505748
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=c8ae24ffd03297d097b553997eda3807f1505748

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 54aa4db..6a675dd 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2615,6 +2615,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;
@@ -2641,13 +2644,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);
@@ -2721,6 +2728,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