Skip to content

Commit

Permalink
Explicitly say that we are downloading and what the content length is
Browse files Browse the repository at this point in the history
  • Loading branch information
eherot committed Nov 5, 2023
1 parent f062e94 commit bbbf9c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ It is more important to the community that you are able to contribute.

For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.

Arbitrary change to trigger a build #2
Arbitrary change to trigger a build #3
2 changes: 2 additions & 0 deletions lib/logstash/inputs/s3/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def handle(remote_file)
return if !validator.process?(remote_file)
@logger.debug("Remote file passed validation. Downloading data.", :remote_file => remote_file)

puts "remote_file.content_length: #{remote_file.content_length} which is > 0. Downloading!"

remote_file.download!

@logger.debug("File downloaded. Emitting events.", :remote_file => remote_file)
Expand Down

0 comments on commit bbbf9c1

Please sign in to comment.