Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/logstash/outputs/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def open(path)

if deleted?(path)
if @create_if_deleted
@logger.debug("Required path was deleted, creating the file again", :path => path)
@files.delete(path)
@logger.debug("Required path was deleted, creating the file again, and releasing old handle", :path => path)
@files.delete(path).close if cached?(path)
else
return @files[path] if cached?(path)
end
Expand Down