Skip to content

Commit

Permalink
Merge pull request #4124 from daipom/fix-nameerror-secondaryfileoutput
Browse files Browse the repository at this point in the history
Fix NameError of `SecondaryFileOutput` when setting secondary other than `out_secondary_file`
  • Loading branch information
ashie authored Apr 3, 2023
2 parents 5bb6df9 + 7f55552 commit d28b114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def configure(conf)
end
@secondary.acts_as_secondary(self)
@secondary.configure(secondary_conf)
if (@secondary.class != SecondaryFileOutput) &&
if (@secondary.class.to_s != "Fluent::Plugin::SecondaryFileOutput") &&
(self.class != @secondary.class) &&
(@custom_format || @secondary.implement?(:custom_format))
log.warn "Use different plugin for secondary. Check the plugin works with primary like secondary_file", primary: self.class.to_s, secondary: @secondary.class.to_s
Expand Down

0 comments on commit d28b114

Please sign in to comment.