lib/logjam_agent/request.rb in logjam_agent-0.36.0 vs lib/logjam_agent/request.rb in logjam_agent-0.37.0

- old
+ new

@@ -4,11 +4,11 @@ require "json" end module LogjamAgent class Request - attr_reader :fields, :uuid, :start_time + attr_reader :fields, :uuid, :start_time, :log_info attr_accessor :log_device_ignored_lines def initialize(app, env, initial_fields) @app = app @env = env @@ -37,9 +37,10 @@ @ignored = false @bytes_all_lines = 0 @max_bytes_all_lines = LogjamAgent.max_bytes_all_lines @max_line_length = LogjamAgent.max_line_length @lines_dropped = false + @log_info = {} end def start_time=(start_time) @start_time = start_time @fields[:started_at] = start_time.iso8601