From 55b34399cfe00f0b41c7c59d66d793ca84560914 Mon Sep 17 00:00:00 2001 From: Jason Hsu Date: Sat, 16 Sep 2023 18:46:31 -0700 Subject: [PATCH] Don't log healthcheck --- src/instancer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/instancer.go b/src/instancer.go index 05d5812..bb489d5 100644 --- a/src/instancer.go +++ b/src/instancer.go @@ -43,6 +43,10 @@ func InitInstancer() (*Instancer, error) { LogURI: true, LogStatus: true, LogValuesFunc: func(c echo.Context, v middleware.RequestLoggerValues) error { + // Ignore healthcheck endpoint to prevent spam. + if c.Path() == "healthz" { + return nil + } reqLog.Info(). Str("URI", v.URI). Int("status", v.Status).