From f873f64a400112ce0a34af5c04f171632038eead Mon Sep 17 00:00:00 2001 From: "Tomi P. Hakala" Date: Thu, 19 Dec 2024 20:22:02 +0200 Subject: [PATCH] refactor: remove logger initialization from server setup to avoid it beind done twice --- internal/httpcontroller/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/httpcontroller/server.go b/internal/httpcontroller/server.go index 194697fc..0ff82085 100644 --- a/internal/httpcontroller/server.go +++ b/internal/httpcontroller/server.go @@ -57,8 +57,6 @@ func New(settings *conf.Settings, dataStore datastore.Interface, birdImageCache // Configure an IP extractor s.Echo.IPExtractor = echo.ExtractIPFromXFFHeader() - s.initLogger() - // Initialize SunCalc for calculating sun event times s.SunCalc = suncalc.NewSunCalc(settings.BirdNET.Latitude, settings.BirdNET.Longitude)