Debug logs only in debug mode
This commit is contained in:
parent
2468ecab7e
commit
7e997d7046
1 changed files with 5 additions and 0 deletions
|
|
@ -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...");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue