Skip to content

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.

@FxKu FxKu added the minor label Aug 23, 2024
@FxKu FxKu added this to the 1.14.0 milestone Aug 23, 2024
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
@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.

3 participants