Skip to content

Commit b831ff5

Browse files
committed
fix: disable health check request logs
The excluded path is wrong
1 parent ca85a17 commit b831ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/server/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func setup(ctx context.Context, d driver.Registry, cmd *cobra.Command) (admin *h
201201
NewMiddlewareFromLogger(d.Logger(),
202202
fmt.Sprintf("hydra/admin: %s", d.Config().IssuerURL(ctx).String()))
203203
if d.Config().DisableHealthAccessLog(config.AdminInterface) {
204-
adminLogger = adminLogger.ExcludePaths("/admin"+healthx.AliveCheckPath, "/admin"+healthx.ReadyCheckPath)
204+
adminLogger = adminLogger.ExcludePaths(healthx.AliveCheckPath, healthx.ReadyCheckPath)
205205
}
206206

207207
adminmw.Use(adminLogger)

0 commit comments

Comments
 (0)