Skip to content

Commit

Permalink
stderrthreshold: fix flag comment
Browse files Browse the repository at this point in the history
The code is so that the -stderrthreshold gets ignored when
-alsologtostderr=true.
  • Loading branch information
pohly committed May 9, 2023
1 parent 6ded808 commit af9a5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func init() {
logging.stderrThreshold = severityValue{
Severity: severity.ErrorLog, // Default stderrThreshold is ERROR.
}
commandLine.Var(&logging.stderrThreshold, "stderrthreshold", "logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false)")
commandLine.Var(&logging.stderrThreshold, "stderrthreshold", "logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true)")
commandLine.Var(&logging.vmodule, "vmodule", "comma-separated list of pattern=N settings for file-filtered logging")
commandLine.Var(&logging.traceLocation, "log_backtrace_at", "when logging hits line file:N, emit a stack trace")

Expand Down

0 comments on commit af9a5b1

Please sign in to comment.