[gnome-notes] log: Improve GdkPixbuf log
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] log: Improve GdkPixbuf log
- Date: Sun, 20 Jun 2021 20:38:37 +0000 (UTC)
commit dec2d14c39c7de1a519e807c99d2bee8c7a78ba8
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sun Jun 20 19:18:26 2021 +0530
log: Improve GdkPixbuf log
We don’t want to skip critical/warnings from GdkPixbuf
regardless of the verbosity. Also, show GdkPixbuf logs
when the verbosity is set to very high.
src/bjb-log.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-log.c b/src/bjb-log.c
index c69d9bce..0b1436db 100644
--- a/src/bjb-log.c
+++ b/src/bjb-log.c
@@ -215,8 +215,10 @@ bjb_log_handler (GLogLevelFlags log_level,
return G_LOG_WRITER_HANDLED;
/* GdkPixbuf logs are too much verbose, skip unless asked not to. */
- if (g_strcmp0 (log_domain, "GdkPixbuf") == 0 &&
- !strstr (domains, log_domain))
+ if (log_level >= G_LOG_LEVEL_MESSAGE &&
+ verbosity < 7 &&
+ g_strcmp0 (log_domain, "GdkPixbuf") == 0 &&
+ (!domains || !strstr (domains, log_domain)))
return G_LOG_WRITER_HANDLED;
if (!log_message)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]