Skip to content

Commit

Permalink
fix: serve.admin.request_log.disable_for_health behaviour (#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoakes committed Apr 14, 2022
1 parent 744b84e commit 0a381fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/daemon/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ func ServeAdmin(r driver.Registry, wg *sync.WaitGroup, cmd *cobra.Command, args
l,
"admin#"+c.SelfPublicURL().String(),
)

if r.Config(ctx).DisableAdminHealthRequestLog() {
adminLogger.ExcludePaths(healthx.AliveCheckPath, healthx.ReadyCheckPath)
adminLogger.ExcludePaths(x.AdminPrefix+healthx.AliveCheckPath, x.AdminPrefix+healthx.ReadyCheckPath)
}
n.Use(adminLogger)
n.UseFunc(x.RedirectAdminMiddleware)
Expand Down

0 comments on commit 0a381fa

Please sign in to comment.