[folks] Don't log errors in tp-lowlevel functions if they return a GError



commit c598212e03664d0d033ddb3ac5eac92aead9c388
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Mon Aug 2 11:14:36 2010 +0100

    Don't log errors in tp-lowlevel functions if they return a GError
    
    Let the higher-level code decide whether a message or warning needs to
    be logged to the terminal instead.

 backends/telepathy/tp-lowlevel.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/backends/telepathy/tp-lowlevel.c b/backends/telepathy/tp-lowlevel.c
index aeb6133..deb8039 100644
--- a/backends/telepathy/tp-lowlevel.c
+++ b/backends/telepathy/tp-lowlevel.c
@@ -55,7 +55,6 @@ connection_ensure_channel_cb (TpConnection *conn,
 
   if (error != NULL)
     {
-      g_message ("Failed to ensure channel: %s\n", error->message);
       g_simple_async_result_set_from_error (simple, error);
     }
   else
@@ -144,7 +143,6 @@ get_contacts_by_handle_cb (TpConnection *conn,
 
   if (error != NULL)
     {
-      g_message ("Failed to get contacts: %s\n", error->message);
       g_simple_async_result_set_from_error (simple, error);
     }
   else
@@ -232,7 +230,6 @@ get_contacts_by_id_cb (TpConnection *conn,
 
   if (error != NULL)
     {
-      g_message ("Failed to get contacts: %s\n", error->message);
       g_simple_async_result_set_from_error (simple, error);
     }
   else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]