Pass the exception to HealthCheckEnd log message (#24786)
There was null intead of exception passed.
This commit is contained in:
parent
fcf2823f3a
commit
7632afc4eb
|
|
@ -254,7 +254,7 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HealthStatus.Unhealthy:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue