diff --git a/src/gcal-log.c b/src/gcal-log.c index 5d460d33..cbeda6fc 100644 --- a/src/gcal-log.c +++ b/src/gcal-log.c @@ -26,6 +26,12 @@ G_LOCK_DEFINE_STATIC (channel_lock); GIOChannel *standard_channel = NULL; +static const gchar* ignored_domains[] = +{ + "GdkPixbuf", + NULL +}; + static const gchar * log_level_str (GLogLevelFlags log_level) { @@ -57,6 +63,10 @@ gcal_log_handler (const gchar *domain, gchar ftime[32]; gchar *buffer; + /* Skip ignored log domains */ + if (g_strv_contains (ignored_domains, domain)) + return; + level = log_level_str (log_level); g_get_current_time (&tv); t = (time_t) tv.tv_sec;