From fcb44cc62a3401543a734648770a9d2ac7270904 Mon Sep 17 00:00:00 2001 From: Darkvengance aka Sildaekar Date: Tue, 31 Jan 2012 05:02:45 -0600 Subject: [PATCH] Fixed minor error in log name code --- TShockAPI/TShock.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index bee91793..eec78456 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -107,13 +107,13 @@ namespace TShockAPI if (!Directory.Exists(SavePath)) Directory.CreateDirectory(SavePath); -#if DEBUG DateTime now = DateTime.Now; +#if DEBUG Log.Initialize(Path.Combine(SavePath, now.ToString("yyyyMMddHHmmss")+".log"), LogLevel.All, false); #else - Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All & ~LogLevel.Debug, false); + Log.Initialize(Path.Combine(SavePath, now.ToString("yyyyMMddHHmmss")+".log"), LogLevel.All & ~LogLevel.Debug, false); #endif - AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; + AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; try {