mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Log sys/health errors
This commit is contained in:
parent
3f97410fe4
commit
2fea072515
@ -42,6 +42,7 @@ func fetchStatusCode(r *http.Request, field string) (int, bool, bool) {
|
||||
func handleSysHealthGet(core *vault.Core, w http.ResponseWriter, r *http.Request) {
|
||||
code, body, err := getSysHealth(core, r)
|
||||
if err != nil {
|
||||
core.Logger().Error("error checking health", "error", err)
|
||||
respondError(w, http.StatusInternalServerError, nil)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user