mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
Log sys/health errors
This commit is contained in:
parent
3f97410fe4
commit
2fea072515
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue