XUnitLogger will dispose of messages after test completion.

This commit is contained in:
Harrison Deng 2021-04-08 22:26:44 -05:00
parent 89b23258aa
commit ccff87fc63

View File

@ -23,7 +23,11 @@ namespace GameServiceWarden.Core.Tests
public void LogMessage(string message, DateTime time, LogLevel level)
{
outputHelper.WriteLine($"[{time.ToShortTimeString()}][{level.ToString()}]: {message}");
try
{
outputHelper.WriteLine($"[{time.ToShortTimeString()}][{level.ToString()}]: {message}");
}
catch (InvalidOperationException) { };
}
}
}