mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat(healthcheck): add failing sections to report (#7789)
This commit is contained in:
@ -47,11 +47,9 @@ func (api *API) debugDeploymentHealth(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), api.HealthcheckTimeout)
|
||||
defer cancel()
|
||||
|
||||
report, err := api.HealthcheckFunc(ctx, apiKey)
|
||||
if err == nil {
|
||||
api.healthCheckCache.Store(report)
|
||||
}
|
||||
return report, err
|
||||
report := api.HealthcheckFunc(ctx, apiKey)
|
||||
api.healthCheckCache.Store(report)
|
||||
return report, nil
|
||||
})
|
||||
|
||||
select {
|
||||
|
Reference in New Issue
Block a user