Skip to content

Commit

Permalink
fix: omit health
Browse files Browse the repository at this point in the history
  • Loading branch information
TAK848 committed Feb 29, 2024
1 parent 1e6e007 commit 2c8b349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func SetRequestLoggerToEcho(e *echo.Echo, logger *zap.Logger) {
}
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// if c.Path() == "/health" {
// return next(c)
// }
if c.Path() == "/health" {
return next(c)
}
return middleware.RequestLoggerWithConfig(cfg)(next)(c)
}
})
Expand Down

0 comments on commit 2c8b349

Please sign in to comment.