Skip to content

fix(controller): honor stderrthreshold when logtostderr is enabled#4673

Open
pierluigilenoci wants to merge 1 commit intoargoproj:masterfrom
pierluigilenoci:fix/honor-stderrthreshold
Open

fix(controller): honor stderrthreshold when logtostderr is enabled#4673
pierluigilenoci wants to merge 1 commit intoargoproj:masterfrom
pierluigilenoci:fix/honor-stderrthreshold

Conversation

@pierluigilenoci
Copy link
Copy Markdown

Summary

Opt into the new klog behavior so that -stderrthreshold is honored even when -logtostderr=true (the default). Set stderrthreshold=INFO to preserve backward compatibility.

Background

When -logtostderr=true, -stderrthreshold was ignored — all logs went to stderr. Fixed in kubernetes/klog#432 (v2.140.0+), but projects must opt in.

References

Opt into the fixed klog behavior by setting legacy_stderr_threshold_behavior=false
after klog.InitFlags(). Ref: kubernetes/klog#212, kubernetes/klog#432

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
@pierluigilenoci
Copy link
Copy Markdown
Author

Hi @dependabot[bot],dthomson25,jessesuen — would you be willing to review? Thank you!

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

Published E2E Test Results

  4 files    4 suites   3h 48m 42s ⏱️
120 tests 105 ✅  7 💤  8 ❌
494 runs  454 ✅ 28 💤 12 ❌

For more details on these failures, see this check.

Results for commit 011ab41.

@github-actions
Copy link
Copy Markdown
Contributor

Published Unit Test Results

2 443 tests   2 443 ✅  3m 18s ⏱️
  129 suites      0 💤
    1 files        0 ❌

Results for commit 011ab41.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.83%. Comparing base (e046515) to head (011ab41).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4673      +/-   ##
==========================================
- Coverage   84.86%   84.83%   -0.04%     
==========================================
  Files         164      164              
  Lines       18954    18954              
==========================================
- Hits        16086    16080       -6     
- Misses       2007     2010       +3     
- Partials      861      864       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pierluigilenoci pierluigilenoci changed the title Honor stderrthreshold when logtostderr is enabled fix: honor stderrthreshold when logtostderr is enabled Mar 27, 2026
@pierluigilenoci pierluigilenoci changed the title fix: honor stderrthreshold when logtostderr is enabled fix(log): honor stderrthreshold when logtostderr is enabled Mar 27, 2026
@pierluigilenoci pierluigilenoci changed the title fix(log): honor stderrthreshold when logtostderr is enabled fix(controller): honor stderrthreshold when logtostderr is enabled Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant