Debug logs only in debug mode

This commit is contained in:
high 2011-06-28 11:48:52 -04:00
parent 2468ecab7e
commit 7e997d7046

View file

@ -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...");