lib/fluent/plugin/out_rdkafka.rb in fluent-plugin-kafka-0.17.2 vs lib/fluent/plugin/out_rdkafka.rb in fluent-plugin-kafka-0.17.3
- old
+ new
@@ -276,10 +276,11 @@
message_key = (@exclude_message_key ? record.delete('message_key'.freeze) : record['message_key'.freeze]) || @default_message_key
record_buf = @formatter_proc.call(tag, time, record)
record_buf_bytes = record_buf.bytesize
if @max_send_limit_bytes && record_buf_bytes > @max_send_limit_bytes
- log.warn "record size exceeds max_send_limit_bytes. Skip event:", :time => time, :record => record
+ log.warn "record size exceeds max_send_limit_bytes. Skip event:", :time => time, :record_size => record_buf_bytes
+ log.debug "Skipped event:", :record => record
next
end
rescue StandardError => e
log.warn "unexpected error during format record. Skip broken event:", :error => e.to_s, :error_class => e.class.to_s, :time => time, :record => record
next