-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 a check that primary and secondary use custom_format
or not
#1153
Add a check that primary and secondary use custom_format
or not
#1153
Conversation
end | ||
|
||
mock(d.instance.log).warn("secondary type should be same with primary one", | ||
{ :primary=>d.instance.class.to_s, :secondary=>"Fluent::Plugin::Test2Output" }) |
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.
Use json style hash literal instead of rocket operator.
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.
|
130cdb6
to
e4e2204
Compare
I don't know that 😨 |
@@ -477,6 +488,36 @@ def waiting(seconds) | |||
|
|||
i.stop; i.before_shutdown; i.shutdown; i.after_shutdown; i.close; i.terminate | |||
end | |||
|
|||
test "Warn if primary type differents from secondary type and either primary or secondary has custom_format" do |
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.
"is different from"
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.
e4e2204
to
af8056f
Compare
assert_not_nil o.instance_variable_get(:@secondary) | ||
end | ||
|
||
test "don't warn if primary type is same as econdary type" do |
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.
"econdary" -> "secondary"
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.
7487104
to
ec3847c
Compare
ec3847c
to
971eaff
Compare
LGTM. Thank you for contribution! |
Not to warn about secondary plugin type if "standard" format is used in both of primary and secondary.
This PR closes #1150.