Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind: rephrase --log-http usage #461

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bind/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ func HTTPServerConfig(fs *pflag.FlagSet, cfg *forwarder.HTTPServerConfig, prefix
fs.Var(anyflag.NewValue[httplog.Mode](cfg.LogHTTPMode, &cfg.LogHTTPMode, anyflag.EnumParser[httplog.Mode](httpLogModes...)),
namePrefix+"log-http", "<none|short-url|url|headers|body|errors>"+
"HTTP request and response logging mode. "+
"By default, request line and headers are logged if response status code is greater than or equal to 500. "+
"Setting this to none disables logging. "+
"The short-url mode logs [scheme://]host[/path] instead of the full URL. ")
"The short-url mode logs [scheme://]host[/path] instead of the full URL. "+
"The error mode logs request line and headers if status code is greater than or equal to 500. ")
}

func TLSServerConfig(fs *pflag.FlagSet, cfg *forwarder.TLSServerConfig, namePrefix string) {
Expand Down