Skip to content

Commit 45fb767

Browse files
committed
Add a note about HTTP request logging to the logging flags
Signed-off-by: Richard Wall <[email protected]>
1 parent 6ad7079 commit 45fb767

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/logs/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func AddFlags(fs *pflag.FlagSet) {
104104
if f.Name == "v" {
105105
f.Name = "log-level"
106106
f.Shorthand = "v"
107-
f.Usage = fmt.Sprintf("%s. 0=Info, 1=Debug, 2=Trace. Use 3-10 for even greater detail. (default: 0)", f.Usage)
107+
f.Usage = fmt.Sprintf("%s. 0=Info, 1=Debug, 2=Trace. Use 6-9 for increasingly verbose HTTP request logging. (default: 0)", f.Usage)
108108
}
109109
})
110110
fs.AddFlagSet(&tfs)

pkg/logs/logs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestLogs(t *testing.T) {
8383
name: "help",
8484
flags: "-h",
8585
expectStdout: `
86-
-v, --log-level Level number for the log level verbosity. 0=Info, 1=Debug, 2=Trace. Use 3-10 for even greater detail. (default: 0)
86+
-v, --log-level Level number for the log level verbosity. 0=Info, 1=Debug, 2=Trace. Use 6-9 for increasingly verbose HTTP request logging. (default: 0)
8787
--logging-format string Sets the log format. Permitted formats: "json", "text". (default "text")
8888
--vmodule pattern=N,... comma-separated list of pattern=N settings for file-filtered logging (only works for text log format)
8989
`,

0 commit comments

Comments
 (0)