From 645c9e72d24c0a6959d2e181c70bc2552eb79a5b Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 3 Apr 2023 21:01:32 +0200 Subject: [PATCH] fix debug log --- EnvyUpdate/Debug.cs | 2 +- EnvyUpdate/MainWindow.xaml.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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); }