[Telepathy-commits] [telepathy-glib/master] TpConnectionManager: add some debug messages

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Feb 12 09:17:44 PST 2009


---
 telepathy-glib/connection-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c
index 63a4653..36f46c6 100644
--- a/telepathy-glib/connection-manager.c
+++ b/telepathy-glib/connection-manager.c
@@ -404,6 +404,8 @@ tp_connection_manager_got_protocols (TpConnectionManager *self,
 
   if (error != NULL)
     {
+      DEBUG ("Failed: %s", error->message);
+
       if (!self->running)
         {
           /* ListProtocols failed to start it - we assume this is because
@@ -418,6 +420,8 @@ tp_connection_manager_got_protocols (TpConnectionManager *self,
   for (iter = protocols; *iter != NULL; iter++)
     i++;
 
+  DEBUG ("Succeeded with %u protocols", i);
+
   g_assert (self->priv->found_protocols == NULL);
   /* Allocate one more pointer - we're going to append NULL afterwards */
   self->priv->found_protocols = g_ptr_array_sized_new (i + 1);
@@ -446,6 +450,7 @@ tp_connection_manager_idle_introspect (gpointer data)
     {
       self->priv->listing_protocols = TRUE;
 
+      DEBUG ("calling ListProtocols on CM");
       tp_cli_connection_manager_call_list_protocols (self, -1,
           tp_connection_manager_got_protocols, NULL, NULL,
           NULL);
@@ -949,6 +954,8 @@ tp_connection_manager_idle_read_manager_file (gpointer data)
           GPtrArray *protocols = tp_connection_manager_read_file (
               self->priv->manager_file, &error);
 
+          DEBUG ("Reading %s", self->priv->manager_file);
+
           if (protocols == NULL)
             {
               DEBUG ("Failed to load %s: %s", self->priv->manager_file,
-- 
1.5.6.5




More information about the telepathy-commits mailing list