From 6d5ecc8ebd1e05dee1e70b839a5cdd7950fd361d Mon Sep 17 00:00:00 2001 From: Florent Messa Date: Fri, 17 Feb 2023 14:36:52 +0100 Subject: [PATCH] ref: use logger in every environments --- server/http.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/http.go b/server/http.go index ce2eef1b..3f0d566d 100644 --- a/server/http.go +++ b/server/http.go @@ -19,7 +19,6 @@ import ( "github.com/thoas/picfit" "github.com/thoas/picfit/config" "github.com/thoas/picfit/failure" - "github.com/thoas/picfit/logger" "github.com/thoas/picfit/middleware" "github.com/thoas/stats" ) @@ -70,9 +69,7 @@ func (s *HTTPServer) Init() error { router.Use(gin.Recovery()) } - if s.config.Logger.GetLevel() == logger.DevelopmentLevel { - router.Use(ginzap.Ginzap(s.processor.Logger, time.RFC3339, true)) - } + router.Use(ginzap.Ginzap(s.processor.Logger, time.RFC3339, true)) if s.config.Sentry != nil { if err := sentry.Init(sentry.ClientOptions{