Skip to content

Commit 4aa7418

Browse files
weichchWei Chen
andauthored
Rearrange messages to bring status forward (#26575)
Co-authored-by: Wei Chen <[email protected]>
1 parent 694cf28 commit 4aa7418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ private static class Log
191191
private static readonly Action<ILogger, double, HealthStatus, Exception?> _healthCheckProcessingEnd = LoggerMessage.Define<double, HealthStatus>(
192192
LogLevel.Debug,
193193
EventIds.HealthCheckProcessingEnd,
194-
"Health check processing completed after {ElapsedMilliseconds}ms with combined status {HealthStatus}");
194+
"Health check processing with combined status {HealthStatus} completed after {ElapsedMilliseconds}ms");
195195

196196
private static readonly Action<ILogger, string, Exception?> _healthCheckBegin = LoggerMessage.Define<string>(
197197
LogLevel.Debug,
198198
EventIds.HealthCheckBegin,
199199
"Running health check {HealthCheckName}");
200200

201201
// These are separate so they can have different log levels
202-
private static readonly string HealthCheckEndText = "Health check {HealthCheckName} completed after {ElapsedMilliseconds}ms with status {HealthStatus} and description '{HealthCheckDescription}'";
202+
private static readonly string HealthCheckEndText = "Health check {HealthCheckName} with status {HealthStatus} completed after {ElapsedMilliseconds}ms with message '{HealthCheckDescription}'";
203203

204204
private static readonly Action<ILogger, string, double, HealthStatus, string?, Exception?> _healthCheckEndHealthy = LoggerMessage.Define<string, double, HealthStatus, string?>(
205205
LogLevel.Debug,

0 commit comments

Comments
 (0)