make sure that __log is never empty so that .Last() can't throw

This commit is contained in:
Robert McRackan 2021-09-04 18:17:29 -04:00
parent 9e11086d49
commit 89207866f3

View File

@ -9,7 +9,7 @@ namespace DtoImporterService
public static class PerfLogger
{
private static Stopwatch sw = new Stopwatch();
private static List<timeLogEntry> __log { get; } = new List<timeLogEntry>();
private static List<timeLogEntry> __log { get; } = new List<timeLogEntry> { new("begin", 0, 0) };
public static void logTime(string s)
{