Skip to content

Commit bb8aade

Browse files
author
Jan Geertsma
committed
set ignore for files that fail
1 parent 9581241 commit bb8aade

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/logstash/inputs/azure_blob_storage.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ def run(queue)
235235
chunk = full_read(name)
236236
size=chunk.size
237237
rescue Exception => e
238-
@logger.error("Failed to read #{name} because of: #{e.message} .. will continue and pretend this never happened")
238+
@logger.error("Failed to read #{name} because of: #{e.message} .. will continue, set file as read and pretend this never happened")
239+
@logger.error("#{size} size and #{file[:length]} file length")
240+
size = file[:length]
239241
end
240242
else
241243
@logger.info("found a zero size file #{name}")

0 commit comments

Comments
 (0)