logging changes
This commit is contained in:
parent
be0cc403b9
commit
02c9f2af6b
14 changed files with 96 additions and 77 deletions
|
@ -16,14 +16,14 @@ func RunServer() {
|
|||
http.Handle("/", videos)
|
||||
http.Handle("/nenefoot/", nenefoot)
|
||||
|
||||
log.Info().Str("port", config.BotConfig.Webserver.Port).Msg("Starting webserver")
|
||||
|
||||
log.Info().Str("port", config.BotConfig.Webserver.Port).Msg("Started webserver")
|
||||
err := http.ListenAndServe(":"+config.BotConfig.Webserver.Port, nil)
|
||||
|
||||
if err != nil {
|
||||
log.Panic().Err(err).Msg("Failed to start webserver")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*func handle204(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue