Skip to content

Commit

Permalink
fix: exclude /health endpoints from logs (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored Sep 15, 2021
1 parent 83391b7 commit 7c27f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/registry_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func (r *RegistryDefault) allHandlers() []Handler {
}

func (r *RegistryDefault) ReadRouter() http.Handler {
n := negroni.New(reqlog.NewMiddlewareFromLogger(r.l, "write#Ory Keto"))
n := negroni.New(reqlog.NewMiddlewareFromLogger(r.l, "read#Ory Keto").ExcludePaths(healthx.AliveCheckPath, healthx.ReadyCheckPath))

br := &x.ReadRouter{Router: httprouter.New()}

Expand All @@ -347,7 +347,7 @@ func (r *RegistryDefault) ReadRouter() http.Handler {
}

func (r *RegistryDefault) WriteRouter() http.Handler {
n := negroni.New(reqlog.NewMiddlewareFromLogger(r.l, "write#Ory Keto"))
n := negroni.New(reqlog.NewMiddlewareFromLogger(r.l, "write#Ory Keto").ExcludePaths(healthx.AliveCheckPath, healthx.ReadyCheckPath))

pr := &x.WriteRouter{Router: httprouter.New()}

Expand Down

0 comments on commit 7c27f92

Please sign in to comment.