lib/fluent/plugin/buf_file.rb in fluentd-hubspot-0.14.14.1 vs lib/fluent/plugin/buf_file.rb in fluentd-hubspot-0.14.14.2
- old
+ new
@@ -168,17 +168,13 @@
end
def generate_chunk(metadata)
# FileChunk generates real path with unique_id
if @file_permission
- chunk = Fluent::Plugin::Buffer::FileChunk.new(metadata, @path, :create, perm: @file_permission, compress: @compress)
+ Fluent::Plugin::Buffer::FileChunk.new(metadata, @path, :create, perm: @file_permission, compress: @compress)
else
- chunk = Fluent::Plugin::Buffer::FileChunk.new(metadata, @path, :create, compress: @compress)
+ Fluent::Plugin::Buffer::FileChunk.new(metadata, @path, :create, compress: @compress)
end
-
- log.debug "Created new chunk", chunk_id: dump_unique_id_hex(chunk.unique_id), metadata: metadata
-
- return chunk
end
end
end
end