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

ParseFieldMatcher should log when using deprecated settings. #16988

Merged
merged 1 commit into from
Mar 8, 2016

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Mar 7, 2016

I always thought ParseFieldMatcher would log when using a deprecated setting,
but it does not.

@jpountz jpountz added >bug :Core/Infra/Logging Log management and logging utilities v2.3.0 v5.0.0-alpha1 labels Mar 7, 2016
assertThat(withDeprecations.match(randomFrom(values), true), is(true));
assertThat(withDeprecations.match("foo bar", true), is(false));
expectThrows(IllegalArgumentException.class, () -> withDeprecations.match(randomFrom(deprecated), true));
expectThrows(IllegalArgumentException.class, () -> withDeprecations.match("barFoo", true));
Copy link
Member

Choose a reason for hiding this comment

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

It would be good to check part of the message for these expectThrows to be sure it is not some other IAE?

@rjernst
Copy link
Member

rjernst commented Mar 7, 2016

Looks good, one suggestion with the tests.

…16988

I always thought ParseFieldMatcher would log when using a deprecated setting,
but it does not.
@jpountz jpountz force-pushed the fix/parse_field_log branch from a127d32 to 026519e Compare March 8, 2016 08:52
@jpountz jpountz merged commit 026519e into elastic:master Mar 8, 2016
jpountz added a commit that referenced this pull request Mar 8, 2016
I always thought ParseFieldMatcher would log when using a deprecated setting,
but it does not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Logging Log management and logging utilities v2.3.0 v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants