diff --git a/EnvyUpdate/Debug.cs b/EnvyUpdate/Debug.cs index 01e98b9..a239764 100644 --- a/EnvyUpdate/Debug.cs +++ b/EnvyUpdate/Debug.cs @@ -53,7 +53,7 @@ namespace EnvyUpdate public static void LogToFile(string content) { if (isVerbose) - System.IO.File.AppendAllText(Debug.debugFile, content); + System.IO.File.AppendAllText(Debug.debugFile, content + "\n"); } } } diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index d7f1ab3..cd86d62 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -39,8 +39,6 @@ namespace EnvyUpdate if (Debug.isVerbose) { - if (!File.Exists(Debug.debugFile)) - File.CreateText(Debug.debugFile); File.AppendAllText(Debug.debugFile, "INFO Starting EnvyUpdate, version " + System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion); }