improved test output

This commit is contained in:
Christian Köllner 2020-02-01 14:10:05 +01:00
parent 1ec5b0e955
commit bb1a8bf51c

View File

@ -484,7 +484,7 @@ namespace Capnp.Net.Runtime.Tests
}
catch (AggregateException exception) when (exception.InnerException is RpcException rpcException && rpcException.Message == "Cannot access a disposed object.")
{
Logger.Log(LogLevel.Information, $"Oops, object disposed. Counter = {cap.Count}, tx count = {client.SendCount}, rx count = {client.RecvCount}");
Console.WriteLine($"Oops, object disposed. Counter = {cap.Count}, tx count = {client.SendCount}, rx count = {client.RecvCount}");
throw;
}