Skip to content

change default component log level to misc:error#6149

Merged
zirain merged 1 commit intoenvoyproxy:mainfrom
zirain:misc-log-level
May 22, 2025
Merged

change default component log level to misc:error#6149
zirain merged 1 commit intoenvoyproxy:mainfrom
zirain:misc-log-level

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented May 22, 2025

fixes: #5983

@codecov
Copy link
Copy Markdown

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.47%. Comparing base (36651e7) to head (2be8a3e).
Report is 44 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6149      +/-   ##
==========================================
- Coverage   70.52%   70.47%   -0.05%     
==========================================
  Files         219      219              
  Lines       36342    36345       +3     
==========================================
- Hits        25629    25614      -15     
- Misses       9192     9207      +15     
- Partials     1521     1524       +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.

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain marked this pull request as ready for review May 22, 2025 01:06
@zirain zirain requested a review from a team as a code owner May 22, 2025 01:06
Copy link
Copy Markdown
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@zirain zirain merged commit c09c42c into envoyproxy:main May 22, 2025
27 checks passed
@zirain zirain deleted the misc-log-level branch May 22, 2025 09:26
if componentsLogLevel := logging.GetEnvoyProxyComponentLevel(); componentsLogLevel != "" {
args = append(args, fmt.Sprintf("--component-log-level %s", componentsLogLevel))
} else {
// Default to error level for misc components if not set.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be moved to

func (logging *ProxyLogging) GetEnvoyProxyComponentLevel() string {
?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both are fine to me, I change send a follow up if you want.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure that would be great if we can keep the source of truth of defaults inside GetEnvoyProxyComponentLevel rather than in the caller

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.

envoy report warn messages

4 participants