[Telepathy-commits] [telepathy-gabble/master] check_gadget_buddy: don't print debug message so we don't flood log with it each time we receive a presence

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Dec 10 06:07:50 PST 2008


---
 src/conn-olpc.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index 051d7d9..930858a 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -157,7 +157,6 @@ check_gadget_buddy (GabbleConnection *conn,
   if (conn->olpc_gadget_buddy != NULL)
     return TRUE;
 
-  DEBUG ("%s", error.message);
   if (context != NULL)
     dbus_g_method_return_error (context, &error);
 
@@ -3682,7 +3681,10 @@ olpc_gadget_publish (GabbleSvcOLPCGadget *iface,
   GError *error = NULL;
 
   if (!check_gadget_buddy (conn, context))
-    return;
+    {
+      DEBUG ("Server does not provide Gadget Buddy service");
+      return;
+    }
 
   conn->olpc_gadget_publish = publish;
 
-- 
1.5.6.5



More information about the Telepathy-commits mailing list