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

Always use deprecateAndMaybeLog for deprecation warnings #55115

Merged

Conversation

pugnascotia
Copy link
Contributor

Closes #53137. Replace calls to deprecate(String,Object...) with deprecateAndMaybeLog(...), with an appropriate key, so that all messages can potentially be deduplicated.

Closes elastic#53137. Replace calls to `deprecate(String,Object...)` with
`deprecateAndMaybeLog(...)`, with an appropriate key, so that all
messages can potentially be deduplicated.
@pugnascotia pugnascotia added :Core/Infra/Logging Log management and logging utilities v8.0.0 v7.7.0 labels Apr 13, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Logging)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@pugnascotia pugnascotia added v7.8.0 and removed v7.7.0 labels Apr 16, 2020
@pugnascotia pugnascotia merged commit 8638d08 into elastic:master Apr 16, 2020
@pugnascotia pugnascotia deleted the 53137-dedup-deprecation-warnings branch April 16, 2020 15:19
pugnascotia added a commit to pugnascotia/elasticsearch that referenced this pull request Apr 16, 2020
Backport of elastic#55115.

Closes elastic#53137. Replace calls to deprecate(String,Object...) with
deprecateAndMaybeLog(...), with an appropriate key, so that all messages
can potentially be deduplicated.
yyff pushed a commit to yyff/elasticsearch that referenced this pull request Apr 17, 2020
Closes elastic#53137. Replace calls to deprecate(String,Object...) with deprecateAndMaybeLog(...), with an appropriate key, so that all messages
can potentially be deduplicated.
pugnascotia added a commit that referenced this pull request Apr 23, 2020
Backport of #55115.

Replace calls to deprecate(String,Object...) with deprecateAndMaybeLog(...),
with an appropriate key, so that all messages can potentially be deduplicated.
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Mar 5, 2021
The commit elastic#55115 removed the possibility to directly force deprecation
log to be emitted. This means that usage of deprecated fields was
throtthled and only one deprecation was logged. The key was common for
all fields = "deprecated_field".

This commit appends a used deprecated field name to prevent that
throthling.
pgomulka added a commit that referenced this pull request Mar 5, 2021
The commit #55115 removed the possibility to directly force deprecation
log to be emitted. This means that usage of deprecated fields was
throttled and only one deprecation was logged. The key was common for
all fields = "deprecated_field".

This commit appends a used deprecated field name to prevent that
throttled.
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Mar 5, 2021
The commit elastic#55115 removed the possibility to directly force deprecation
log to be emitted. This means that usage of deprecated fields was
throttled and only one deprecation was logged. The key was common for
all fields = "deprecated_field".

This commit appends a used deprecated field name to prevent that
throttled.
pgomulka added a commit that referenced this pull request Mar 9, 2021
The commit #55115 removed the possibility to directly force deprecation
log to be emitted. This means that usage of deprecated fields was
throttled and only one deprecation was logged. The key was common for
all fields = "deprecated_field".

This commit appends a used deprecated field name to prevent that
throttled.
easyice pushed a commit to easyice/elasticsearch that referenced this pull request Mar 25, 2021
The commit elastic#55115 removed the possibility to directly force deprecation
log to be emitted. This means that usage of deprecated fields was
throttled and only one deprecation was logged. The key was common for
all fields = "deprecated_field".

This commit appends a used deprecated field name to prevent that
throttled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deduplicate deprecation warnings from LoggingDeprecationHandler
4 participants