From c4c5c81cdfd0daa4e990f503e1240db059d1bc79 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 1 Oct 2026 14:50:09 -0300 Subject: [PATCH] core/log: Enable tracing with G_MESSAGES_DEBUG=all Part-of: --- src/core/gcal-log.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/gcal-log.c b/src/core/gcal-log.c index d326841e..ade90b15 100644 --- a/src/core/gcal-log.c +++ b/src/core/gcal-log.c @@ -121,10 +121,16 @@ gcal_log_init (void) if (g_once_init_enter (&initialized)) { + const char *messages_debug = g_getenv ("G_MESSAGES_DEBUG"); + standard_channel = g_io_channel_unix_new (STDOUT_FILENO); g_log_set_default_handler (gcal_log_handler, NULL); + /* Assume tracing if G_MESSAGES_DEBUG=all */ + if (g_strcmp0 (messages_debug, "all") == 0) + log_verbosity = 4; + g_once_init_leave (&initialized, TRUE); } }