From e7d216ff45cdce1ce631587996e47f0a41f5b15a Mon Sep 17 00:00:00 2001 From: Matthias Linhuber Date: Fri, 22 Sep 2023 22:22:07 +0200 Subject: [PATCH] Improve log messages --- HadesAPI/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HadesAPI/main.go b/HadesAPI/main.go index abec369..9fa1b2c 100644 --- a/HadesAPI/main.go +++ b/HadesAPI/main.go @@ -29,10 +29,12 @@ func main() { log.Panic(err) } - log.Info("Starting HadesAPI") + log.Infof("Starting HadesAPI on port %d", cfg.APIPort) gin.SetMode(gin.ReleaseMode) + r := gin.Default() r.GET("/ping", ping) r.POST("/build", AddBuildToQueue) - log.Panic(r.Run(fmt.Sprintf(":%d", cfg.APIPort))) // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080") + + log.Panic(r.Run(fmt.Sprintf(":%d", cfg.APIPort))) }