From ba71c06ee5c26bc5bc16178621b30bcbc6079e4a Mon Sep 17 00:00:00 2001 From: guyboertje Date: Thu, 3 Dec 2015 09:56:16 +0000 Subject: [PATCH] document the changes to the quit method regarding closing files. Fixes #79 --- lib/logstash/inputs/file.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/logstash/inputs/file.rb b/lib/logstash/inputs/file.rb index 18f7d5d..d18141b 100644 --- a/lib/logstash/inputs/file.rb +++ b/lib/logstash/inputs/file.rb @@ -221,6 +221,9 @@ def add_path_meta(event, path) end def stop - @tail.quit if @tail # _sincedb_write is called implicitly + # in filewatch >= 0.6.7, quit will closes and forget all files + # but it will write their last read positions to since_db + # beforehand + @tail.quit if @tail end end # class LogStash::Inputs::File