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

Ensure plugin config marked :deprecated logs to deprecation logger #16833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

donoghuc
Copy link
Member

@donoghuc donoghuc commented Dec 24, 2024

Release notes

Log messages for configuration options marked as :deprecated in plugin config are now routed to the deprecation logger instead of the main logger.

What does this PR do?

Previously when the :deprecated modifier was used in the plugin config DSL a
log message was sent at :warn level to the main logger. This commit updates
that message to be routed only to the deprecation logger.

Why is it important/What is the impact to the user?

Instead of needing to check the main logger for deprecation messages logged at WARN level, users can now expect to find the messages at the expected deprecation logger location. This allows them to find the complete set in the designated/expected destination.

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Closes #14988

Previously when the `:deprecated` modifier was used in the plugin config DSL a
log message was sent at `:warn` level to the main logger. This commit updates
that message to be routed *only* to the deprecation logger.
@donoghuc donoghuc force-pushed the GH-14988-deprecation-logger branch from dff38cc to 7280c78 Compare December 30, 2024 19:52
@donoghuc donoghuc marked this pull request as ready for review December 30, 2024 19:58
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@donoghuc donoghuc changed the title WIP: Open PR to run tests and save progress Ensure plugin config marked :deprecated logs to deprecation logger Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the :deprecate modifier of config DSL to log on deprecation logger
2 participants