-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Change default deprecation logger level to CRITICAL backport(#77030) #77482
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
Merged
pgomulka
merged 8 commits into
elastic:7.x
from
pgomulka:bp7x_/logging-deprecation-level
Sep 27, 2021
Merged
Change default deprecation logger level to CRITICAL backport(#77030) #77482
pgomulka
merged 8 commits into
elastic:7.x
from
pgomulka:bp7x_/logging-deprecation-level
Sep 27, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit changes default deprecation logger level to CRITICAL, where default means deprecations emitted by DeprecationLogger#critical method. It also introduces WARN deprecations which are emitted by DeprecationLogger#warn Those log lines emitted at WARN are meant to indicate that a functionality is deprecated but will not break at next major version. relates elastic#76754
Collaborator
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
pgomulka
commented
Sep 10, 2021
| allOf( | ||
| hasEntry("level", "WARN"), | ||
| hasEntry("component", "o.e.d.test"), | ||
| // hasEntry("category", "other"), fix this.. |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
masseyke
added a commit
that referenced
this pull request
Oct 19, 2021
…#79107) A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, #77482. However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a warning. This commit exposes the ability to set the deprecation level when deprecating a setting. Closes #78781
masseyke
added a commit
to masseyke/elasticsearch
that referenced
this pull request
Oct 19, 2021
…elastic#79107) A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, elastic#77482. However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a warning. This commit exposes the ability to set the deprecation level when deprecating a setting. Closes elastic#78781
masseyke
added a commit
that referenced
this pull request
Oct 19, 2021
…79107) (#79492) A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, #77482. However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a warning. This commit exposes the ability to set the deprecation level when deprecating a setting. Relates #78781
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport
:Core/Infra/Logging
Log management and logging utilities
Team:Core/Infra
Meta label for core/infra team
v7.16.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit changes default deprecation logger level to CRITICAL, where default means deprecations emitted by DeprecationLogger#critical method.
It also introduces WARN deprecations which are emitted by DeprecationLogger#warn Those log lines emitted at WARN are meant to indicate that a functionality is deprecated but will not break at next major version.
relates #76754