Log exception after critical accept loop error (#2140)

This commit is contained in:
Stephen Halter 2017-10-31 11:09:11 -07:00 committed by GitHub
parent eeb49c2af7
commit 0c34523e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
}
else
{
_trace.LogCritical($"Unexpected exeption in {nameof(SocketTransport)}.{nameof(RunAcceptLoopAsync)}.");
_trace.LogCritical(ex, $"Unexpected exeption in {nameof(SocketTransport)}.{nameof(RunAcceptLoopAsync)}.");
_listenException = ex;
// Request shutdown so we can rethrow this exception