[tomboy] Default Logger.LogLevel to INFO, unless running with --debug.



commit 7292f1ad9c521e93fb43e250546c26eaa7dae54c
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon Jun 29 08:23:14 2009 -0700

    Default Logger.LogLevel to INFO, unless running with --debug.

 Tomboy/Tomboy.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/Tomboy.cs b/Tomboy/Tomboy.cs
index 89020bd..71e35d6 100644
--- a/Tomboy/Tomboy.cs
+++ b/Tomboy/Tomboy.cs
@@ -65,6 +65,7 @@ namespace Tomboy
 
 			TomboyCommandLine cmd_line = new TomboyCommandLine (args);
 			debugging = cmd_line.Debug;
+			Logger.LogLevel = debugging ? Level.DEBUG : Level.INFO;
 			is_panel_applet = cmd_line.UsePanelApplet;
 
 #if ENABLE_DBUS || WIN32 || MAC // Run command-line earlier with DBus enabled



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