From 17edb825696ee3b91b16ebc80100f6407362dc97 Mon Sep 17 00:00:00 2001 From: FVoronin Date: Tue, 6 Apr 2021 09:33:41 +0500 Subject: [PATCH] Fix duplicated event names in KestrelTrace logger. (#31523) --- .../Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs b/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs index 82182456580a..e814d8e58551 100644 --- a/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs +++ b/src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs @@ -86,7 +86,7 @@ internal class KestrelTrace : IKestrelTrace LoggerMessage.Define(LogLevel.Information, new EventId(33, "RequestBodyDrainTimedOut"), @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": automatic draining of the request body timed out after taking over 5 seconds."); private static readonly Action _applicationAbortedConnection = - LoggerMessage.Define(LogLevel.Information, new EventId(34, "RequestBodyDrainTimedOut"), @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application aborted the connection."); + LoggerMessage.Define(LogLevel.Information, new EventId(34, "ApplicationAbortedConnection"), @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application aborted the connection."); private static readonly Action _http2StreamResetAbort = LoggerMessage.Define(LogLevel.Debug, new EventId(35, "Http2StreamResetAbort"),