From 7e997d704658c76393c99fe80abdee00d6e443d2 Mon Sep 17 00:00:00 2001 From: high Date: Tue, 28 Jun 2011 11:48:52 -0400 Subject: [PATCH] Debug logs only in debug mode --- TShockAPI/TShock.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index edbed599..e36c06f0 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -77,7 +77,12 @@ namespace TShockAPI FileTools.SetupConfig(); +#if DEBUG Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All, false); +#else + Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All & ~LogLevel.Debug, false); +#endif + Log.ConsoleInfo(string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename)); Log.Info("Starting...");