fix debug log
This commit is contained in:
parent
ae9f50354e
commit
645c9e72d2
2 changed files with 1 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue