Skip to content

Commit

Permalink
Improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed Sep 22, 2023
1 parent 40236a9 commit e7d216f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions HadesAPI/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}

0 comments on commit e7d216f

Please sign in to comment.