[gnome-calendar/gnome-3-18] manager: prevent excessive logging.



commit 01560d37b0ef8f5d4dc79d9a558262a5d1b71d9f
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 4ebaeb6..2a4498d 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]