fix debug log

This commit is contained in:
Jakob 2023-04-03 21:01:32 +02:00
parent ae9f50354e
commit 645c9e72d2
2 changed files with 1 additions and 3 deletions

View file

@ -53,7 +53,7 @@ namespace EnvyUpdate
public static void LogToFile(string content) public static void LogToFile(string content)
{ {
if (isVerbose) if (isVerbose)
System.IO.File.AppendAllText(Debug.debugFile, content); System.IO.File.AppendAllText(Debug.debugFile, content + "\n");
} }
} }
} }

View file

@ -39,8 +39,6 @@ namespace EnvyUpdate
if (Debug.isVerbose) 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); File.AppendAllText(Debug.debugFile, "INFO Starting EnvyUpdate, version " + System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion);
} }