[glib] gmessages: Don’t check G_MESSAGES_DEBUG in old logging API
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gmessages: Don’t check G_MESSAGES_DEBUG in old logging API
- Date: Fri, 24 Mar 2017 15:08:36 +0000 (UTC)
commit 21b6b1fba7c36bc760c77d83e69d68aca5362e27
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]