logging changes

This commit is contained in:
watn3y 2023-12-29 07:54:27 +01:00
parent be0cc403b9
commit 02c9f2af6b
14 changed files with 96 additions and 77 deletions

View file

@ -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) {