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

Add null check for logger #1332

Merged
merged 5 commits into from
Dec 6, 2016
Merged

Add null check for logger #1332

merged 5 commits into from
Dec 6, 2016

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Nov 28, 2016

If plugin uses config_param :name, :string, deprecated: "This is deprecated" then we cannot use the plugin with plugins using v0.12
compatible layer.

@okkez
Copy link
Contributor Author

okkez commented Nov 28, 2016

I've added deprecated option to fluent-plugin-grok-parser, but I could not complete it.
Because in_tcp in Fluentd v0.14.9 does not use v0.14 API.

Maybe root cause:

See also

@tagomoris
Copy link
Member

LGTM.
Can you add any tests about it?

@okkez
Copy link
Contributor Author

okkez commented Nov 28, 2016

I've added test and pushed changes.
@tagomoris could you review again?

assert_nil(obj.log)
end

test 'nothing raised if obsoleted parameter is configured' do
Copy link
Member

Choose a reason for hiding this comment

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

This test case shows that "nothing raised", but test code does "assert_raise". Which one is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow, I've fixed 🙇

@tagomoris
Copy link
Member

@okkez could you rebase this branch on master and push again? CI jobs are failing with many reasons which are already solved in other pull-requests.

If plugin uses `config_param :name, :string, deprecated: "This is
deprecated"` then we cannot use the plugin with plugins using v0.12
compatible layer.
@okkez
Copy link
Contributor Author

okkez commented Nov 30, 2016

Rebased and pushed.

@tagomoris
Copy link
Member

LGTM. Thank you!

@tagomoris tagomoris merged commit 4b1dc5c into fluent:master Dec 6, 2016
@okkez okkez deleted the add-null-check branch January 30, 2017 07:41
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.

2 participants