fix: exclude `/health` endpoints from logs
@@ -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()}
@@ -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()}
