From c4b18213232dc22ed15b9fa336576bef9e39f559 Mon Sep 17 00:00:00 2001 From: Billy Keyes Date: Thu, 21 Mar 2024 10:50:51 -0700 Subject: [PATCH] Disable logging and metrics for health checks (#499) These end up adding a lot of noise to logs and are rarely useful. --- server/handler/health.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/handler/health.go b/server/handler/health.go index 657fa90cf..223eb7c76 100644 --- a/server/handler/health.go +++ b/server/handler/health.go @@ -28,6 +28,7 @@ type HealthCheck struct { func Health() http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + baseapp.IgnoreAll(r) baseapp.WriteJSON(w, http.StatusOK, &HealthCheck{Status: "ok", Version: version.GetVersion()}) }) }