Skip to content

Commit

Permalink
Merge pull request #4299 from isimluk/minor-perf
Browse files Browse the repository at this point in the history
remove unnecessary self-assignment
  • Loading branch information
ashie authored Sep 13, 2023
2 parents 7da3f79 + c99c5e5 commit 78c9146
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/fluent/fluent_log_event_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78c9146

Please sign in to comment.