improved logging

This commit is contained in:
1e99 2025-02-16 12:01:14 +01:00
parent 9da0f355a9
commit 79059d79d3

View file

@ -40,7 +40,13 @@ func run() error {
mux.HandleFunc("GET /{$}", routes.Index(serviceList))
err = http.ListenAndServe(":3000", mux)
address := os.Getenv("STATUS_ADDRESS")
if address == "" {
address = ":3000"
}
log.Printf("Listening on %s", address)
err = http.ListenAndServe(address, mux)
if err != nil {
return err
}