diff --git a/lib/fluent/fluent_log_event_router.rb b/lib/fluent/fluent_log_event_router.rb index b31ac16ce0..3ab7c6c393 100644 --- a/lib/fluent/fluent_log_event_router.rb +++ b/lib/fluent/fluent_log_event_router.rb @@ -47,8 +47,6 @@ def self.build(root_agent) # it's not suppressed in default event router for non-log-event events log_event_router.suppress_missing_match! - log_event_router = log_event_router - unmatched_tags = Fluent::Log.event_tags.select { |t| !log_event_router.match?(t) } unless unmatched_tags.empty? $log.warn "match for some tags of log events are not defined in @FLUENT_LOG label (to be ignored)", tags: unmatched_tags