class Fluent::TailPathInput::TailWatcher::StatWatcher
Public Class Methods
new(path, &callback)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/in_tailpath.rb, line 256 def initialize(path, &callback) @callback = callback super(path) end
Public Instance Methods
on_change(prev, cur)
click to toggle source
# File lib/fluent/plugin/in_tailpath.rb, line 261 def on_change(prev, cur) @callback.call rescue # TODO log? $log.error $!.to_s $log.error_backtrace end