Skip to content

Commit

Permalink
Merge pull request #3829 from fluent/issue3614-add-log
Browse files Browse the repository at this point in the history
in_tail: Show more information on skipping update_watcher
  • Loading branch information
ashie committed Jul 25, 2022
2 parents caec5b7 + 260a08a commit a83d6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fluent/plugin/in_tail.rb
Expand Up @@ -498,7 +498,8 @@ def update_watcher(target_info, pe)
pe_inode = pe.read_inode
target_info_from_position_entry = TargetInfo.new(path, pe_inode)
unless pe_inode == @pf[target_info_from_position_entry].read_inode
log.debug "Skip update_watcher because watcher has been already updated by other inotify event"
log.warn "Skip update_watcher because watcher has been already updated by other inotify event",
path: path, inode: pe.read_inode, inode_in_pos_file: @pf[target_info_from_position_entry].read_inode
return
end
end
Expand Down

0 comments on commit a83d6b8

Please sign in to comment.