[gnome-software] Use --verbose only for controlling debug messages



commit 09b7e48fa13782ab6b4016793c1948349d6ba148
Author: Kalev Lember <klember redhat com>
Date:   Fri Dec 8 16:45:10 2017 +0100

    Use --verbose only for controlling debug messages
    
    ... and always output info/warnings/criticals/errors messages to
    console. This makes it much easier to see warnings and avoids having to
    do the 'gnome-software --verbose >/dev/null' dance to get all the
    warnings.

 lib/gs-debug.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-debug.c b/lib/gs-debug.c
index 825424b..1573d9c 100644
--- a/lib/gs-debug.c
+++ b/lib/gs-debug.c
@@ -49,7 +49,8 @@ gs_log_writer_console (GLogLevelFlags log_level,
        g_autoptr(GString) domain = NULL;
 
        /* enabled */
-       if (g_getenv ("GS_DEBUG") == NULL)
+       if (g_getenv ("GS_DEBUG") == NULL &&
+           log_level == G_LOG_LEVEL_DEBUG)
                return G_LOG_WRITER_HANDLED;
 
        /* get data from arguments */


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