[gnome-system-monitor] Use g_print instead of g_debug to print debug messages



commit 9776a209d8c53b49694c8b0885908b6969e12686
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sat Aug 10 12:13:28 2013 +0200

    Use g_print instead of g_debug to print debug messages
    
    In this way you only need to set GNOME_SYSTEM_MONITOR variable to
    see debug messages. Previousely, G_MESSAGES_DEBUG=all (or similar)
    was needed in addition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705753

 src/util.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/util.cpp b/src/util.cpp
index 97e4548..b03dcf6 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -357,7 +357,7 @@ procman_debug_real(const char *file, int line, const char *func,
     msg = g_strdup_vprintf(format, args);
     va_end(args);
 
-    g_debug("[%.3f %s:%d %s] %s", get_relative_time(), file, line, func, msg);
+    g_print ("[%.3f %s:%d %s] %s\n", get_relative_time(), file, line, func, msg);
 
     g_free(msg);
 }


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