Skip to content

Commit

Permalink
refactor: add a debug log on sending
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Apr 11, 2022
1 parent 3624ff8 commit bb538b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/out_sumologic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ def write(chunk)
fields = [fields,@custom_fields].compact.join(",")
end

@log.debug { "Sending #{messages.count} #{@data_type} records with source category '#{source_category}', source host '#{source_host}', source name '#{source_name}'." }

@sumo_conn.publish(
messages.join("\n"),
source_host =source_host,
Expand Down

0 comments on commit bb538b0

Please sign in to comment.