Pass the exception to HealthCheckEnd log message (#24786)

There was null intead of exception passed.
This commit is contained in:
JLeczycki 2020-08-11 19:58:51 +02:00 committed by GitHub
parent fcf2823f3a
commit 7632afc4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks
break;
case HealthStatus.Unhealthy:
_healthCheckEndUnhealthy(logger, registration.Name, duration.TotalMilliseconds, entry.Status, entry.Description, null);
_healthCheckEndUnhealthy(logger, registration.Name, duration.TotalMilliseconds, entry.Status, entry.Description, entry.Exception);
break;
}
}