[folks] core: Set G_MESSAGES_DEBUG when parsing debug domains
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] core: Set G_MESSAGES_DEBUG when parsing debug domains
- Date: Mon, 9 Jan 2012 11:16:52 +0000 (UTC)
commit c34cd4b9f07b22f3813c3f26051521cb6338ea5e
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Jan 9 10:55:02 2012 +0000
core: Set G_MESSAGES_DEBUG when parsing debug domains
This stops GLib from dropping all our debug output (unless the user has
remembered to set G_MESSAGES_DEBUG manually in addition to FOLKS_DEBUG).
folks/debug.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/folks/debug.vala b/folks/debug.vala
index 233af2f..1cdfcc6 100644
--- a/folks/debug.vala
+++ b/folks/debug.vala
@@ -255,6 +255,11 @@ 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]