Added better startup message
This commit is contained in:
parent
bbcb666c53
commit
944e4c89b7
8
main.go
8
main.go
@ -50,6 +50,14 @@ func main() {
|
|||||||
port = "4567"
|
port = "4567"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
campfireURL := os.Getenv("CAMPFIRE_URL")
|
||||||
|
if campfireURL == "" {
|
||||||
|
campfireURL = "(not set)"
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Listening on port %s\n", port)
|
||||||
|
fmt.Printf("Campfire URL: %s\n", campfireURL)
|
||||||
|
|
||||||
panic(http.ListenAndServe(":"+port, nil))
|
panic(http.ListenAndServe(":"+port, nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user