Skip to content

Commit a187382

Browse files
committed
Fix arguments order for call of HeartbeatSlow
1 parent 2121105 commit a187382

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ internal class KestrelTrace : IKestrelTrace
4747
private static readonly Action<ILogger, Exception?> _notAllConnectionsAborted =
4848
LoggerMessage.Define(LogLevel.Debug, new EventId(21, "NotAllConnectionsAborted"), "Some connections failed to abort during server shutdown.");
4949

50-
private static readonly Action<ILogger, TimeSpan, TimeSpan, DateTimeOffset, Exception?> _heartbeatSlow =
51-
LoggerMessage.Define<TimeSpan, TimeSpan, DateTimeOffset>(LogLevel.Warning, new EventId(22, "HeartbeatSlow"), @"As of ""{now}"", the heartbeat has been running for ""{heartbeatDuration}"" which is longer than ""{interval}"". This could be caused by thread pool starvation.");
50+
private static readonly Action<ILogger, DateTimeOffset, TimeSpan, TimeSpan, Exception?> _heartbeatSlow =
51+
LoggerMessage.Define<DateTimeOffset, TimeSpan, TimeSpan>(LogLevel.Warning, new EventId(22, "HeartbeatSlow"), @"As of ""{now}"", the heartbeat has been running for ""{heartbeatDuration}"" which is longer than ""{interval}"". This could be caused by thread pool starvation.");
5252

5353
private static readonly Action<ILogger, string, Exception?> _applicationNeverCompleted =
5454
LoggerMessage.Define<string>(LogLevel.Critical, new EventId(23, "ApplicationNeverCompleted"), @"Connection id ""{ConnectionId}"" application never completed");
@@ -200,7 +200,7 @@ public virtual void NotAllConnectionsAborted()
200200

201201
public virtual void HeartbeatSlow(TimeSpan heartbeatDuration, TimeSpan interval, DateTimeOffset now)
202202
{
203-
_heartbeatSlow(_logger, heartbeatDuration, interval, now, null);
203+
_heartbeatSlow(_logger, now, heartbeatDuration, interval, null);
204204
}
205205

206206
public virtual void ApplicationNeverCompleted(string connectionId)

0 commit comments

Comments
 (0)