lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.1.7 vs lib/fluent/plugin/out_s3.rb in fluent-plugin-s3-1.1.8
- old
+ new
@@ -150,11 +150,11 @@
end
begin
buffer_type = @buffer_config[:@type]
@compressor = COMPRESSOR_REGISTRY.lookup(@store_as).new(buffer_type: buffer_type, log: log)
- rescue
- log.warn "#{@store_as} not found. Use 'text' instead"
+ rescue => e
+ log.warn "'#{@store_as}' not supported. Use 'text' instead: error = #{e.message}"
@compressor = TextCompressor.new
end
@compressor.configure(conf)
@formatter = formatter_create