Skip to content

Commit

Permalink
fix: don't log healthcheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed May 16, 2024
1 parent de45b3f commit a05ee64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfigurati
logger := observability.NewStructuredLogger(logrus.StandardLogger(), globalConfig)

r := newRouter()
r.Get("/health", api.HealthCheck)

r.UseBypass(observability.AddRequestID(globalConfig))
r.UseBypass(logger)
r.UseBypass(xffmw.Handler)
Expand All @@ -117,8 +119,6 @@ func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfigurati
r.UseBypass(api.databaseCleanup(cleanup))
}

r.Get("/health", api.HealthCheck)

r.Route("/callback", func(r *router) {
r.Use(api.isValidExternalHost)
r.Use(api.loadFlowState)
Expand Down

0 comments on commit a05ee64

Please sign in to comment.