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

GH-5053: avoid log spam for configurations class with legacy settings #5077

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

aschwarte10
Copy link
Contributor

@aschwarte10 aschwarte10 commented Jul 18, 2024

GitHub issue resolved: #5053

When there is only a value for the legacy setting (i.e. the new config setting is not used) we now log on level debug. Otherwise on warn.

The rational is: when users still have persisted legacy repository configurations, the log is easily spammed with warnings.


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

When there is only a value for the legacy setting (i.e. the new config
setting is not used) we now log on level debug. Otherwise on warn.

The rational is: when users still have persisted legacy repository
configurations, the log is easily spammed with warnings.
Copy link
Contributor

@hmottestad hmottestad 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. Thank you!

I'm not sure if you want Jerven to take a look at this or not, so I'll leave the merging up to you.

@aschwarte10 aschwarte10 merged commit 1044c5c into main Aug 12, 2024
9 checks passed
@aschwarte10 aschwarte10 deleted the GH-5053-fix-configurations-log-spam branch August 12, 2024 05:47
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.

Repository "Configurations" class spams the log when using legacy config
2 participants