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
This commit is contained in:
parent
d68ff69c7a
commit
0ea690a2f2
@ -630,7 +630,8 @@ app_load_events (App *app)
|
|||||||
error = NULL;
|
error = NULL;
|
||||||
if (!e_client_open_sync (E_CLIENT (cal), TRUE, NULL, &error))
|
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);
|
g_error_free (error);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -647,7 +648,8 @@ app_load_events (App *app)
|
|||||||
NULL, /* cancellable */
|
NULL, /* cancellable */
|
||||||
&error))
|
&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_error_free (error);
|
||||||
g_free (query);
|
g_free (query);
|
||||||
continue;
|
continue;
|
||||||
@ -680,7 +682,7 @@ app_load_events (App *app)
|
|||||||
NULL, /* cancellable */
|
NULL, /* cancellable */
|
||||||
&error))
|
&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);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user