- Fix eventmachine-tail usage to match 0.2.x api

This commit is contained in:
Jordan Sissel 2010-05-18 08:11:33 +00:00
parent 4aea3bddb3
commit ae21f3d7c0

View file

@ -123,10 +123,11 @@ module LogStash; module Programs;
private
def setup_watches
handler = EventMachine::FileGlobWatchTail.new(GrokReader, self)
#handler = EventMachine::FileGlobWatchTail.new(GrokReader, self)
@config.watched_paths.each do |path|
$logger.warn("Watching #{path}")
EventMachine::FileGlobWatch.new(path, handler)
EventMachine::FileGlobWatchTail.new(path, GrokReader, interval=60,
exclude=[], agent=self)
end
end