[gnome-builder] libide/core: assume tracing when G_MESSAGES_DEBUG=all



commit 1472ddab5de3ce736cd1288cde6315b902da619f
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 22 14:04:05 2022 -0700

    libide/core: assume tracing when G_MESSAGES_DEBUG=all

 src/libide/core/ide-log.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/libide/core/ide-log.c b/src/libide/core/ide-log.c
index a867eb3da..b7d82a526 100644
--- a/src/libide/core/ide-log.c
+++ b/src/libide/core/ide-log.c
@@ -282,11 +282,13 @@ ide_log_init (gboolean    stdout_,
     {
       log_level_str_func = ide_log_level_str;
       channels = g_ptr_array_new ();
+
       if (filename)
         {
           channel = g_io_channel_new_file (filename, "a", NULL);
           g_ptr_array_add (channels, channel);
         }
+
       if (stdout_)
         {
           channel = g_io_channel_unix_new (STDOUT_FILENO);
@@ -295,6 +297,10 @@ ide_log_init (gboolean    stdout_,
             log_level_str_func = ide_log_level_str_with_color;
         }
 
+      /* Assume tracing if G_MESSAGES_DEBUG=all */
+      if (g_strcmp0 (messages_debug, "all") == 0)
+        log_verbosity = 4;
+
       domains = g_strdup (messages_debug);
       if (!ide_str_empty0 (domains) && strcmp (domains, "all") != 0)
         has_domains = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]