Skip to content

Commit

Permalink
Fix log when follow_inodes = true
Browse files Browse the repository at this point in the history
Signed-off-by: majimenez-stratio <[email protected]>
  • Loading branch information
majimenez-stratio committed Nov 1, 2021
1 parent 494055e commit e908a5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,10 @@ def existence_path
def refresh_watchers
target_paths_hash = expand_paths
existence_paths_hash = existence_path

log.debug { "tailing paths: target = #{target_paths_hash.keys.join(",")} | existing = #{existence_paths_hash.keys.join(",")}" }

target_paths_str = target_paths_hash.collect { |key, target_info| target_info.path }.join(",")
existence_paths_str = existence_paths_hash.collect { |key, target_info| target_info.path }.join(",")
log.debug { "tailing paths: target = #{target_paths_str} | existing = #{existence_paths_str}" }

unwatched_hash = existence_paths_hash.reject {|key, value| target_paths_hash.key?(key)}
added_hash = target_paths_hash.reject {|key, value| existence_paths_hash.key?(key)}
Expand Down

0 comments on commit e908a5d

Please sign in to comment.