Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
disable logging health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Dec 19, 2023
1 parent 2f0bcb9 commit d6a6e93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ func Setup() *http.Server {
// Set up routing
log.Info("(2/5) Registering endpoint handlers")

router := gin.Default()
router := gin.New()
router.Use(
gin.LoggerWithWriter(gin.DefaultWriter, "/health"),
gin.Recovery(),
)

router.HandleMethodNotAllowed = true

Expand Down

0 comments on commit d6a6e93

Please sign in to comment.