Log sys/health errors

This commit is contained in:
Jeff Mitchell 2018-01-19 19:59:58 -05:00
parent 3f97410fe4
commit 2fea072515

View File

@ -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
}