Improve HealthCheckEndText message (#20124)

This commit is contained in:
Ivan Maximov 2020-03-25 10:19:19 +03:00 committed by GitHub
parent bd651695ff
commit 6f7fcd7083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks
"Running health check {HealthCheckName}"); "Running health check {HealthCheckName}");
// These are separate so they can have different log levels // These are separate so they can have different log levels
private static readonly string HealthCheckEndText = "Health check {HealthCheckName} completed after {ElapsedMilliseconds}ms with status {HealthStatus} and '{HealthCheckDescription}'"; private static readonly string HealthCheckEndText = "Health check {HealthCheckName} completed after {ElapsedMilliseconds}ms with status {HealthStatus} and description '{HealthCheckDescription}'";
private static readonly Action<ILogger, string, double, HealthStatus, string, Exception> _healthCheckEndHealthy = LoggerMessage.Define<string, double, HealthStatus, string>( private static readonly Action<ILogger, string, double, HealthStatus, string, Exception> _healthCheckEndHealthy = LoggerMessage.Define<string, double, HealthStatus, string>(
LogLevel.Debug, LogLevel.Debug,