lib/heavylog.rb in heavylog-0.0.4 vs lib/heavylog.rb in heavylog-0.0.5

- old
+ new

@@ -81,9 +81,11 @@ buffer = RequestStore.store[:heavylog_buffer] return if !buffer request = { request_id: RequestStore.store[:heavylog_request_id], + request_start: RequestStore.store[:heavylog_request_start], + ip: RequestStore.store[:heavylog_request_ip], messages: buffer.string.dup }.merge(RequestStore.store[:heavylog_request_data] || {}) formatted = Heavylog.formatter.call(request) Heavylog.logger.send(Heavylog.log_level, formatted)