This commit is contained in:
parent
d90682e183
commit
77c626a7c3
1 changed files with 6 additions and 0 deletions
|
|
@ -37,6 +37,12 @@ func NewHandler(deps Deps) *Handler {
|
|||
p := ginprometheus.NewPrometheus("gin")
|
||||
p.Use(engine)
|
||||
|
||||
engine.Use(gin.LoggerWithConfig(gin.LoggerConfig{
|
||||
Skip: func(c *gin.Context) bool {
|
||||
return c.Request.URL.Path == "/metrics"
|
||||
},
|
||||
}))
|
||||
|
||||
srv := http.Server{
|
||||
Addr: deps.Addr,
|
||||
Handler: engine,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue