Skip to content

Commit

Permalink
Merge pull request #3478 from fluent/in-tail-revive-retry-message
Browse files Browse the repository at this point in the history
in_tail: Revive a warning message of retrying unaccecible file
  • Loading branch information
cosmo0920 committed Jul 30, 2021
2 parents 5fb7991 + 04395e2 commit 2e324c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,10 @@ def open
rescue RangeError
io.close if io
raise WatcherSetupError, "seek error with #{@path}: file position = #{@watcher.pe.read_pos.to_s(16)}, reading bytesize = #{@fifo.bytesize.to_s(16)}"
rescue Errno::ENOENT, Errno::EACCES
rescue Errno::EACCES => e
@log.warn "#{e}"
nil
rescue Errno::ENOENT
nil
end

Expand Down

0 comments on commit 2e324c5

Please sign in to comment.