Skip to content

Commit

Permalink
Merge pull request #3515 from fluent/suppress-warning-for-ignore_if_p…
Browse files Browse the repository at this point in the history
…rev_success

out_copy: Suppress a wrong warning for ignore_if_prev_success
  • Loading branch information
ashie committed Sep 24, 2021
2 parents 3e146a8 + 1b8b75a commit 8dbe705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_copy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def configure(conf)
@ignore_errors << (store.arg.include?('ignore_error'))
@ignore_if_prev_successes << (store.arg.include?('ignore_if_prev_success'))
}
if @ignore_errors.uniq.size == 1 && @ignore_errors.include?(true) && @ignore_if_prev_successes.include?(false)
if @ignore_errors.uniq.size == 1 && @ignore_errors.include?(true) && !@ignore_if_prev_successes.include?(true)
log.warn "ignore_errors are specified in all <store>, but ignore_if_prev_success is not specified. Is this intended?"
end
end
Expand Down

0 comments on commit 8dbe705

Please sign in to comment.