From 0ea690a2f2f6af3a040a5c28a30eec297d32e494 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 5 Mar 2012 21:33:15 +0100 Subject: [PATCH] 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 file 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 4129c434e..728515238 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