[gnome-shell] calendar-server: use g_warning instead of g_printerr



commit 0ea690a2f2f6af3a040a5c28a30eec297d32e494
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Mar 5 21:33:15 2012 +0100

    calendar-server: use g_warning instead of g_printerr
    
    This way error messages include the process name and PID, so they're
    picked up by bug reporting tools that grep ~/.xsession-errors.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671177

 src/calendar-server/gnome-shell-calendar-server.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar-server/gnome-shell-calendar-server.c b/src/calendar-server/gnome-shell-calendar-server.c
index 4129c43..7285152 100644
--- a/src/calendar-server/gnome-shell-calendar-server.c
+++ b/src/calendar-server/gnome-shell-calendar-server.c
@@ -630,7 +630,8 @@ app_load_events (App *app)
       error = NULL;
       if (!e_client_open_sync (E_CLIENT (cal), TRUE, NULL, &error))
         {
-          g_printerr ("Error opening calendar: %s\n", error->message);
+          g_warning ("Error opening calendar %s: %s\n",
+		     e_client_get_uri (E_CLIENT (cal)), error->message);
           g_error_free (error);
           continue;
         }
@@ -647,7 +648,8 @@ app_load_events (App *app)
 					      NULL, /* cancellable */
 					      &error))
         {
-          g_printerr ("Error querying calendar: %s\n", error->message);
+          g_warning ("Error querying calendar %s: %s\n",
+		     e_client_get_uri (E_CLIENT (cal)), error->message);
           g_error_free (error);
           g_free (query);
           continue;
@@ -680,7 +682,7 @@ app_load_events (App *app)
 				       NULL, /* cancellable */
 				       &error))
         {
-          g_printerr ("Error setting up live-query on calendar: %s\n", error->message);
+          g_warning ("Error setting up live-query on calendar: %s\n", error->message);
           g_error_free (error);
         }
       else



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