From 212059761ee53e2b30a3334394c885cffe092814 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 21:09:24 +0100 Subject: [PATCH] main: enable debuging if enabled in config file --- src/main.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.vala b/src/main.vala index 2c0ac94..b8e4121 100644 --- a/src/main.vala +++ b/src/main.vala @@ -45,6 +45,9 @@ public static int main(string[] args) if (core == null) error("cannot initialize core"); + if (core.config.is_debug_on() == true) + Environment.set_variable("G_MESSAGES_DEBUG", "all", false); + var loop = new MainLoop(); var discovery = new Discovery(); var manager = new DeviceManager();