[gnome-calendar] manager: prevent excessive logging.



commit e611f87d6ab226aaaee3835704c762c4f0f34de7
Author: Erick Perez Castellanos <erick red gmail com>
Date:   Wed Oct 21 08:49:55 2015 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index a017cca..b9b27ab 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)


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