From e611f87d6ab226aaaee3835704c762c4f0f34de7 Mon Sep 17 00:00:00 2001 From: Erick Perez Castellanos Date: Wed, 21 Oct 2015 08:49:55 -0500 Subject: [PATCH] manager: prevent excessive logging. Skip "Job failed" warning when the error is caused by ouselves cancelling the thread. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=749337 --- src/gcal-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-manager.c b/src/gcal-manager.c index a017cca3..b9b27abc 100644 --- a/src/gcal-manager.c +++ b/src/gcal-manager.c @@ -183,7 +183,7 @@ thread_job_data_free (gpointer ptr) { /* This should go to UI with more info/description, * if it is not G_IOI_ERROR_CANCELLED */ - if (tjd->error != NULL) + if (tjd->error != NULL && !g_error_matches (tjd->error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) g_warning ("Job failed: %s\n", tjd->error->message); if (tjd->free_user_data != NULL)