Skip to content

Commit

Permalink
api: Stop logging metrics and healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Jan 26, 2023
1 parent ce561e5 commit a5ad7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ func NewHandler(serverCtx context.Context, opts APIHandlerOptions, runner task.R

hookHandler := metrics.ObservedHandlerFunc("catalyst_hook", router.catalystHook)
hookHandler = authorized(opts.Catalyst.Secret, hookHandler)
hookHandler = logger(router)
router.Handler("POST", clients.CatalystHookPath(opts.APIRoot, ":id"), hookHandler)
return logger(router)
return router
}

func logger(handler http.Handler) http.Handler {
Expand Down

0 comments on commit a5ad7fa

Please sign in to comment.