[folks] folks: Don't set G_MESSAGES_DEBUG unconditionally



commit 31e803448d206b75c820b5147364adac453dce50
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Mar 17 04:49:19 2012 -0400

    folks: Don't set G_MESSAGES_DEBUG unconditionally
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671499

 folks/backend-store.vala |    2 +-
 folks/debug.vala         |    5 -----
 2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/folks/backend-store.vala b/folks/backend-store.vala
index 9d28f9b..554c316 100644
--- a/folks/backend-store.vala
+++ b/folks/backend-store.vala
@@ -138,7 +138,7 @@ public class Folks.BackendStore : Object {
       /* Treat this as a library init function */
       var debug_no_colour = Environment.get_variable ("FOLKS_DEBUG_NO_COLOUR");
       this._debug =
-          Debug.dup_with_flags (Environment.get_variable ("FOLKS_DEBUG"),
+          Debug.dup_with_flags (Environment.get_variable ("G_MESSAGES_DEBUG"),
               (debug_no_colour == null || debug_no_colour == "0"));
 
       /* register the core debug messages */
diff --git a/folks/debug.vala b/folks/debug.vala
index 1cdfcc6..233af2f 100644
--- a/folks/debug.vala
+++ b/folks/debug.vala
@@ -255,11 +255,6 @@ public class Folks.Debug : Object
 
       retval.colour_enabled = colour_enabled;
 
-      /* Unconditionally enable all G_MESSAGES_DEBUG domains, or GLib's default
-       * log handler will drop all our output. We don't spawn any subprocesses,
-       * so this shouldn't leak and cause problems elsewhere. */
-      Environment.set_variable ("G_MESSAGES_DEBUG", "all", true);
-
       return retval;
     }
 



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