From 05e956a30a13ce9c1aaa1131f18f3bc980f47fa7 Mon Sep 17 00:00:00 2001 From: high Date: Sat, 18 Jun 2011 00:25:18 -0400 Subject: [PATCH] Was only logging .Info() calls. Also with the current state of the code we want debug logs too. --- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- TShockAPI/TShock.cs | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index c473fadf..1ea16143 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.1.0.0617")] -[assembly: AssemblyFileVersion("2.1.0.0617")] \ No newline at end of file +[assembly: AssemblyVersion("2.1.0.0618")] +[assembly: AssemblyFileVersion("2.1.0.0618")] \ No newline at end of file diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 5dd14940..bbccdd57 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -72,11 +72,9 @@ namespace TShockAPI string version = string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename); Console.WriteLine(version); -#if DEBUG + Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All, false); -#else - Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.Info, false); -#endif + Log.Info(version); Log.Info("Starting...");