forked from TrueCloudLab/distribution
registry/handlers/app: log healthcheck error before return
Signed-off-by: Flavian Missi <fmissi@redhat.com>
This commit is contained in:
parent
87b280718d
commit
87081252ba
1 changed files with 3 additions and 1 deletions
|
@ -377,6 +377,9 @@ func (app *App) RegisterHealthChecks(healthRegistries ...*health.Registry) {
|
|||
if _, ok := err.(storagedriver.PathNotFoundError); ok {
|
||||
err = nil // pass this through, backend is responding, but this path doesn't exist.
|
||||
}
|
||||
if err != nil {
|
||||
dcontext.GetLogger(app).Errorf("storage driver health check: %v", err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -745,7 +748,6 @@ func (app *App) dispatcher(dispatch dispatchFunc) http.Handler {
|
|||
}
|
||||
|
||||
dispatch(context, r).ServeHTTP(w, r)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue