From 8e6b85541e7c847ead4df8b2a67674bc11d5ef40 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Mon, 20 Oct 2025 17:15:05 +0200 Subject: [PATCH] health handler fix --- src/internal/server/health_handler.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/internal/server/health_handler.go b/src/internal/server/health_handler.go index a5685c7..04f46e4 100644 --- a/src/internal/server/health_handler.go +++ b/src/internal/server/health_handler.go @@ -12,19 +12,13 @@ type HealthResponse struct { } func (s *Server) HealthHandler(c *fiber.Ctx) error { - // Only 404 indicate service as non-healthy + // Only 404 indicate service as not-healthy err := s.GetDatabase().Ping(context.Background()) if err != nil { // fmt.Println("db unavailable", err) return c.SendStatus(http.StatusNotFound) } - err = s.GetLogger().Ping() - if err != nil { - // fmt.Println("logger unavailable", err) - return c.SendStatus(http.StatusNotFound) - } - err = s.GetCache().Ping(context.Background()).Err() if err != nil { // fmt.Println("cache unavailable", err)