log: ignore GdkPixbuf messages

This commit is contained in:
Georges Basile Stavracas Neto
2017-05-16 14:57:21 -03:00
parent 4323990138
commit dc72ff4924
+10
View File
@@ -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;