Skip to content

Commit 7632afc

Browse files
authored
Pass the exception to HealthCheckEnd log message (#24786)
There was null intead of exception passed.
1 parent fcf2823 commit 7632afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public static void HealthCheckEnd(ILogger logger, HealthCheckRegistration regist
254254
break;
255255

256256
case HealthStatus.Unhealthy:
257-
_healthCheckEndUnhealthy(logger, registration.Name, duration.TotalMilliseconds, entry.Status, entry.Description, null);
257+
_healthCheckEndUnhealthy(logger, registration.Name, duration.TotalMilliseconds, entry.Status, entry.Description, entry.Exception);
258258
break;
259259
}
260260
}

0 commit comments

Comments
 (0)