From fa6e102cd88eb3c99849b9eb1383dd203302cb37 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Mon, 28 Oct 2024 02:07:28 +0100 Subject: [PATCH] chore: remove error log to undefined health check route --- .gitignore | 3 ++- pkg/handler.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1996d9d..d7dae71 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ goma bin Makefile NOTES.md -tests \ No newline at end of file +tests +configs \ No newline at end of file diff --git a/pkg/handler.go b/pkg/handler.go index d380a4c..000a90c 100644 --- a/pkg/handler.go +++ b/pkg/handler.go @@ -88,7 +88,7 @@ func (heathRoute HealthCheckRoute) HealthCheckHandler(w http.ResponseWriter, r * continue } } else { - logger.Error("Route %s's healthCheck is undefined", route.Name) + logger.Warn("Route %s's healthCheck is undefined", route.Name) routes = append(routes, HealthCheckRouteResponse{Name: route.Name, Status: "undefined", Error: ""}) continue