Skip to content

Commit

Permalink
feat: do not space out the first logged run
Browse files Browse the repository at this point in the history
  • Loading branch information
AspireOne committed Jul 8, 2022
1 parent ba7b47c commit d0ef680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public static class Logger

static Logger()
{
File.AppendAllText(LogPath, $"\n\n{RunSeparatorLine}\n{DateTime.Now:F}\n");
string spacing = File.Exists(LogPath) ? "\n\n" : "";
File.AppendAllText(LogPath, $"{spacing}{RunSeparatorLine}\n{DateTime.Now:F}\n");
FormatLog();
}

Expand Down

0 comments on commit d0ef680

Please sign in to comment.