From 50b34aec53085477d9bb398e8dc0d979f1f5332f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 20 Oct 2025 13:10:34 +0200 Subject: [PATCH] log: Make `G_MESSAGES_DEBUG=something` work out of the box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit calls wouldn't match the glib docs as setting `G_MESSAGES_DEBUG` also required to pass `-vvv` for things to work. Enable debug logs as soon as that variable is set. Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/720 Signed-off-by: Guido Günther Part-of: --- src/calls-log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calls-log.c b/src/calls-log.c index 158edbe..03eb6db 100644 --- a/src/calls-log.c +++ b/src/calls-log.c @@ -176,21 +176,21 @@ calls_log_handler (GLogLevelFlags log_level, /* If domain is “all” show logs upto debug regardless of the verbosity */ switch ((int) log_level) { case G_LOG_LEVEL_MESSAGE: - if (any_domain && domains) + if (any_domain || domains) break; if (verbosity < 1) return G_LOG_WRITER_HANDLED; break; case G_LOG_LEVEL_INFO: - if (any_domain && domains) + if (any_domain || domains) break; if (verbosity < 2) return G_LOG_WRITER_HANDLED; break; case G_LOG_LEVEL_DEBUG: - if (any_domain && domains) + if (any_domain || domains) break; if (verbosity < 3) return G_LOG_WRITER_HANDLED;