Commit bb46051
committed
fix: honor klog -stderrthreshold when -logtostderr is enabled
klog v2 defaults -logtostderr to true. When this flag is active, the
-stderrthreshold flag is silently ignored — all log messages are
unconditionally written to stderr regardless of severity.
Opt into the fixed behavior introduced in klog v2.140.0 by setting
legacy_stderr_threshold_behavior=false. The default stderrthreshold
remains INFO so the observable behavior is unchanged — users who want
filtering can now pass -stderrthreshold=WARNING and it will take effect.
Ref: kubernetes/klog#212, kubernetes/klog#432
Signed-off-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>1 parent 0713a5b commit bb46051
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments