Correct configuration, improve logging.
This commit is contained in:
parent
f363151045
commit
0cdafa2104
4 changed files with 8 additions and 6 deletions
|
@ -48,7 +48,8 @@ func initWebhooks(filename string) {
|
|||
}
|
||||
|
||||
func runServer() {
|
||||
http.ListenAndServe(":"+viper.GetString("ListenPort"), nil)
|
||||
log.Printf("Starting server on port %s", viper.GetString("ListenPort"))
|
||||
log.Fatal(http.ListenAndServe(":"+viper.GetString("ListenPort"), nil))
|
||||
}
|
||||
|
||||
func makeWebhookHandler(hook webhook) func(http.ResponseWriter, *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue