add proper startup notification

This commit is contained in:
mStar aka a person 2024-01-23 15:07:28 +01:00
parent 715be66068
commit 769f84cbd1

View file

@ -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)