From 62274f6023b0279862ea0dda447821542832b686 Mon Sep 17 00:00:00 2001 From: AKP Date: Tue, 3 Dec 2024 19:31:16 +0000 Subject: [PATCH] Add started message and remove useless type --- palmatum/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/palmatum/main.go b/palmatum/main.go index 9e6aeae..905d659 100644 --- a/palmatum/main.go +++ b/palmatum/main.go @@ -13,8 +13,6 @@ import ( "os" ) -type server interface{} - func main() { fx.New( fx.Provide(provideLogger), @@ -32,7 +30,9 @@ func main() { func(conf *config.Config) { _ = os.MkdirAll(conf.Platform.SitesDirectory, 0777) }, - func(*http.Server, *caddyController.Controller) {}, + func(log *slog.Logger, _ *http.Server, _ *caddyController.Controller) { + log.Info("Palmatum has started") + }, ), ).Run() }