lib/logjam_agent/request.rb in logjam_agent-0.2.0 vs lib/logjam_agent/request.rb in logjam_agent-0.2.1
- old
+ new
@@ -17,10 +17,10 @@
def add_line(severity, timestamp, message)
@lines << [severity, format_time(timestamp), message.strip]
end
def add_exception(exception)
- ((@fields[:exceptions] ||= []) << exception.class.to_s).uniq!
+ ((@fields[:exceptions] ||= []) << exception).uniq!
end
def forward
engine = @fields.delete(:engine)
@forwarder.forward(@fields.to_json, engine)