]> git.0d.be Git - empathy.git/commitdiff
call-observer: set debug domain to 'voip' and add 2 debug messages
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 8 Mar 2011 15:29:39 +0000 (16:29 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 8 Mar 2011 15:49:53 +0000 (16:49 +0100)
src/empathy-call-observer.c

index d724a40ff0dd9781dae3782965ecf21df4fe1f6d..3fb5adcb376f83dfe9e6567bac64b99ef38356c6 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "empathy-call-observer.h"
 
-#define DEBUG_FLAG EMPATHY_DEBUG_DISPATCHER
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
 #include <libempathy/empathy-debug.h>
 
 struct _EmpathyCallObserverPriv {
@@ -57,6 +57,9 @@ on_channel_closed (TpProxy *proxy,
     gchar   *message,
     EmpathyCallObserver *self)
 {
+  DEBUG ("channel %s has been invalidated; stop observing it",
+      tp_proxy_get_object_path (proxy));
+
   self->priv->channels = g_list_remove (self->priv->channels, proxy);
   g_object_unref (proxy);
 }
@@ -159,6 +162,8 @@ observe_channels (TpSimpleObserver *observer,
       return;
     }
 
+  DEBUG ("Observing channel %s", tp_proxy_get_object_path (channel));
+
   tp_g_signal_connect_object (channel, "invalidated",
       G_CALLBACK (on_channel_closed), self, 0);
   self->priv->channels = g_list_prepend (self->priv->channels,