add proper startup notification
This commit is contained in:
parent
715be66068
commit
769f84cbd1
1 changed files with 1 additions and 2 deletions
3
main.go
3
main.go
|
@ -2,7 +2,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
"embed"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
@ -17,8 +16,8 @@ func main() {
|
||||||
port := os.Getenv("PORT")
|
port := os.Getenv("PORT")
|
||||||
if port == "" {
|
if port == "" {
|
||||||
port = "8080"
|
port = "8080"
|
||||||
log.Printf("Defaulting to port %s \n", port)
|
|
||||||
}
|
}
|
||||||
|
logrus.WithField("port", port).Info("starting server")
|
||||||
|
|
||||||
http.HandleFunc("/", handleRoot)
|
http.HandleFunc("/", handleRoot)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue