From dc72ff4924868e823626098d8e7d34a98c1c0c88 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 16 May 2017 14:56:29 -0300 Subject: [PATCH] log: ignore GdkPixbuf messages --- src/gcal-log.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;