mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-07 17:07:09 +00:00
remove unnecessary configuration flag
This commit is contained in:
parent
1747a69304
commit
6431b5622c
|
@ -50,7 +50,7 @@ func NewRouter(conf *config.Config) *http.ServeMux {
|
|||
handler = mw(handler)
|
||||
}
|
||||
for _, mw := range middlewares {
|
||||
if route.Path == "/healthz" && conf.SkipHealthzLog {
|
||||
if route.Path == "/healthz" {
|
||||
continue
|
||||
}
|
||||
handler = mw(handler)
|
||||
|
|
|
@ -13,7 +13,6 @@ type Config struct {
|
|||
ScriptDir string `flag:"scripts" desc:"Scripts location" default:"scripts"`
|
||||
PasswdFile string `flag:"passwd-file" desc:"Password file for basic HTTP authentication" default:".htpasswd"`
|
||||
LogDir string `flag:"log-dir" desc:"Hook execution logs location" default:""`
|
||||
SkipHealthzLog bool `flag:"skip-healthz-log" desc:"Do not log on healthz request" default:"true"`
|
||||
NotificationURI string `flag:"notification-uri" desc:"Notification URI"`
|
||||
TrustStoreFile string `flag:"trust-store-file" desc:"Trust store used by HTTP signature verifier (.pem or .p12)"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user