[gnome-calendar] log: ignore GdkPixbuf messages
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] log: ignore GdkPixbuf messages
- Date: Tue, 16 May 2017 18:02:13 +0000 (UTC)
commit dc72ff4924868e823626098d8e7d34a98c1c0c88
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue May 16 14:56:29 2017 -0300
log: ignore GdkPixbuf messages
src/gcal-log.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-log.c b/src/gcal-log.c
index 5d460d3..cbeda6f 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]