summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2012-07-06 16:49:55 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2012-07-09 18:13:16 +0100
commitc8ae24ffd03297d097b553997eda3807f1505748 (patch)
tree9b57111abc88182ea2e51fc99d3653b71385bfde
parent3d35096f9ccc69b8c3067ed85102694eda4a2855 (diff)
downloadtelepathy-mission-control-c8ae24ffd03297d097b553997eda3807f1505748.tar.gz
dispatcher: add more debug output when delegating channels
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/mcd-dispatcher.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 54aa4db8..6a675ddb 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;