From 769f84cbd19dabc2a3c466ec1e33ea4572ffdd23 Mon Sep 17 00:00:00 2001 From: mStar aka a person <12024604-mstarongitlab@users.noreply.gitlab.com> Date: Tue, 23 Jan 2024 15:07:28 +0100 Subject: [PATCH] add proper startup notification --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 26310cf..0458243 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,6 @@ package main import ( "embed" - "log" "net/http" "os" @@ -17,8 +16,8 @@ func main() { port := os.Getenv("PORT") if port == "" { port = "8080" - log.Printf("Defaulting to port %s \n", port) } + logrus.WithField("port", port).Info("starting server") http.HandleFunc("/", handleRoot)