Skip to content
Open
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
5 changes: 5 additions & 0 deletions cmd/web-console-validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ func init() {
func main() {
// Using the same type of logger as in the controller-manager.
klog.InitFlags(nil)
// Opt into the new klog behavior so that -stderrthreshold is honored even
// when -logtostderr=true (the default).
// Ref: kubernetes/klog#212, kubernetes/klog#432
flag.Set("legacy_stderr_threshold_behavior", "false") //nolint:errcheck
flag.Set("stderrthreshold", "INFO") //nolint:errcheck
ctrllog.SetLogger(textlogger.NewLogger(textlogger.NewConfig()))
logger := ctrllog.Log.WithName("entrypoint")

Expand Down