[glib/glib-2-52] gmessages: Don’t check G_MESSAGES_DEBUG in old logging API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-52] gmessages: Don’t check G_MESSAGES_DEBUG in old logging API
- Date: Sat, 8 Apr 2017 05:49:09 +0000 (UTC)
commit 2d0b6c2b86acb52db798a496771b9b765e086986
Author: Philip Withnall <withnall endlessm com>
Date: Thu Mar 23 21:12:12 2017 +0000
gmessages: Don’t check G_MESSAGES_DEBUG in old logging API
Now that the old logging API forwards through to the new structured
logging API, we don’t need to check the level or domain of a message
against INFO_LEVELS or G_MESSAGES_DEBUG — just pass it straight through
to the new structured logging API writer function.
https://bugzilla.gnome.org/show_bug.cgi?id=775879
glib/gmessages.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index db40801..130db65 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -2995,20 +2995,9 @@ g_log_default_handler (const gchar *log_domain,
const gchar *message,
gpointer unused_data)
{
- const gchar *domains;
GLogField fields[4];
int n_fields = 0;
- if ((log_level & DEFAULT_LEVELS) || (log_level >> G_LOG_LEVEL_USER_SHIFT))
- goto emit;
-
- domains = g_getenv ("G_MESSAGES_DEBUG");
- if (((log_level & INFO_LEVELS) == 0) ||
- domains == NULL ||
- (strcmp (domains, "all") != 0 && (!log_domain || !strstr (domains, log_domain))))
- return;
-
- emit:
/* we can be called externally with recursion for whatever reason */
if (log_level & G_LOG_FLAG_RECURSION)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]