lib/fluent/plugin/in_tail.rb in fluentd-0.10.48 vs lib/fluent/plugin/in_tail.rb in fluentd-0.10.49
- old
+ new
@@ -138,10 +138,14 @@
paths.each { |path|
pe = nil
if @pf
pe = @pf[path]
if @read_from_head && pe.read_inode.zero?
- pe.update(File::Stat.new(path).ino, 0)
+ begin
+ pe.update(File::Stat.new(path).ino, 0)
+ rescue Errno::ENOENT
+ $log.warn "#{path} not found. Continuing without tailing it."
+ end
end
end
@tails[path] = setup_watcher(path, pe)
}