Files
containerd/plugins
Pierluigi Lenoci 2a69c0d2c8 Honor stderrthreshold when logtostderr is enabled
klog has a long-standing bug where setting -logtostderr=true causes the
-stderrthreshold flag to be silently ignored. All log messages are sent
to stderr regardless of their severity.

klog v2.140.0 introduced two new flags that allow callers to opt into the
correct behavior:

  -legacy_stderr_threshold_behavior=false
  -stderrthreshold=INFO

Set them in the CRI plugin's setGLogLevel() function, right after
klog.InitFlags() and before any other flag configuration.

Reference: kubernetes/klog#212
Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
2026-04-03 10:53:54 -05:00
..
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2025-09-18 17:08:43 -07:00