Skip to content

Commit

Permalink
replace rm_rf instead of rm_rf so we can handled StandardError in the…
Browse files Browse the repository at this point in the history
… uploading thread.

Fixes #124
  • Loading branch information
ph committed Jan 18, 2017
1 parent 808609d commit e5ee0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/s3/temporary_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def key
# a sandbox.
def delete!
@fd.close rescue IOError # force close anyway
FileUtils.rm_rf(@temp_path, :secure => true)
FileUtils.rm_r(@temp_path, :secure => true)
end

def empty?
Expand Down

0 comments on commit e5ee0bd

Please sign in to comment.