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

align sync and update logs #2738

Merged
merged 1 commit into from
Aug 27, 2024
Merged

align sync and update logs #2738

merged 1 commit into from
Aug 27, 2024

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Aug 23, 2024

This PR started with a small fix of the logs for syncing the config service (endpoint vs service). There was no debug message for syncing it. While looking at the operator logs in UI I found a few more log lines which were unnecessarily using the info log level instead of debug.

I went through the code and found also debug lines which could in fact be info log lines because they happen during cluster updates. In general, syncing should only be on debug level, actual changes on info level (at least the lines explaining the diff and reporting successful update - intermediate steps can still be on debug level)

After all, most changes in this PR is changing from Debugf (and Debugln) to Debug function when no formatting is needed.

Copy link
Member

@macedigital macedigital left a comment

Choose a reason for hiding this comment

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

Looks good to me

@macedigital
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Aug 27, 2024

👍

@FxKu FxKu merged commit a08d167 into master Aug 27, 2024
11 of 12 checks passed
@FxKu FxKu deleted the patroni-service-sync-logs branch August 27, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants