[mistelix] Allow MISTELIX_DEBUG 1 too
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mistelix] Allow MISTELIX_DEBUG 1 too
- Date: Sat, 6 Nov 2010 09:27:14 +0000 (UTC)
commit 743bfcc2b9e99ead41fb5dc6377fa76ae45134d8
Author: Jordi Mas <jmas softcatala org>
Date: Sat Nov 6 10:29:17 2010 +0100
Allow MISTELIX_DEBUG 1 too
src/mistelix.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/mistelix.cs b/src/mistelix.cs
index 444adc6..c38437c 100644
--- a/src/mistelix.cs
+++ b/src/mistelix.cs
@@ -78,6 +78,8 @@ namespace Mistelix
static Mistelix ()
{
+ string debug;
+
base_dir = System.IO.Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), Defines.APPNAME_LOWER);
// Mono addins
@@ -88,7 +90,9 @@ namespace Mistelix
preferences = new Preferences ();
recent_files = new RecentFilesStorage ();
- if (String.Compare (Environment.GetEnvironmentVariable ("MISTELIX_DEBUG"), "true", false) == 0) {
+ debug = Environment.GetEnvironmentVariable ("MISTELIX_DEBUG");
+
+ if (String.Compare (debug, "true", false) == 0 || String.Compare (debug, "1", false) == 0) {
debugging = true;
Logger.LogLevel = Level.DEBUG;
Logger.LogDevice = new FileLogger ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]