lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-0.8.1 vs lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-0.8.2
- old
+ new
@@ -1,6 +1,7 @@
require 'fluent/output'
+require 'fluent/log-ext'
module Fluent
class S3Output < Fluent::TimeSlicedOutput
Fluent::Plugin.register_output('s3', self)
@@ -175,9 +176,13 @@
options[:http_proxy] = @proxy_uri if @proxy_uri
options[:force_path_style] = @force_path_style
options[:compute_checksums] = @compute_checksums unless @compute_checksums.nil?
options[:signature_version] = @signature_version unless @signature_version.nil?
options[:ssl_verify_peer] = @ssl_verify_peer
+ log.on_trace do
+ options[:http_wire_trace] = true
+ options[:logger] = log
+ end
s3_client = Aws::S3::Client.new(options)
@s3 = Aws::S3::Resource.new(:client => s3_client)
@bucket = @s3.bucket(@s3_bucket)