Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust the log level to V(4) for insignificant reconciliation logs #16

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

wafrelka-pfn
Copy link

Why we need it:

Currently, the plugin emits several reconciliation-related logs at the V(2) level.
These logs are emitted every time reconciliation occurs, even when the plugin does not cause any state changes.
This results in an excessive number of log messages in our internal clusters.

According to the kubernetes logging guidelines, V(2) is intended for steady state information and important log messages.

klog.V(2).InfoS - Useful steady state information about the service and important log messages that may correlate to significant changes in the system.

For logs that do not relate to state changes, V(4) is more appropriate.

What this PR does:

  • Change the log level of certain reconciliation-related logs to V(4).

This change will improve log readability.

This commit changes the log level of certain reconciliation-related logs to V(4).
These logs are emitted even when the plugin does not cause any state changes.
@wafrelka-pfn wafrelka-pfn self-assigned this Jan 10, 2025
Copy link

@ordovicia ordovicia left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@wafrelka-pfn wafrelka-pfn merged commit 4274f54 into master Jan 10, 2025
4 checks passed
@wafrelka-pfn wafrelka-pfn deleted the wafrelka/reconcile-log-level-adjustment branch January 10, 2025 09:10
This was referenced Jan 10, 2025
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.

2 participants