From 2fea0725158546d396fe4e247aa0c0022541c18b Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 19 Jan 2018 19:59:58 -0500 Subject: [PATCH] Log sys/health errors --- http/sys_health.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/sys_health.go b/http/sys_health.go index 7b67bf3131..5dd14e3da6 100644 --- a/http/sys_health.go +++ b/http/sys_health.go @@ -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 }