Skip to content

Commit

Permalink
Pass the exception to HealthCheckEnd log message (#24786)
Browse files Browse the repository at this point in the history
There was null intead of exception passed.
  • Loading branch information
JLeczycki committed Aug 11, 2020
1 parent fcf2823 commit 7632afc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static void HealthCheckEnd(ILogger logger, HealthCheckRegistration regist
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;
}
}
Expand Down

0 comments on commit 7632afc

Please sign in to comment.