lib/timber/events/http_server_request.rb in timber-2.0.2 vs lib/timber/events/http_server_request.rb in timber-2.0.3
- old
+ new
@@ -16,14 +16,9 @@
@path = attributes[:path] || raise(ArgumentError.new(":path is required"))
@port = attributes[:port]
@query_string = Util::HTTPEvent.normalize_query_string(attributes[:query_string])
@scheme = attributes[:scheme] || raise(ArgumentError.new(":scheme is required"))
@request_id = attributes[:request_id]
-
- # This is disabled for now. The ControllerCall event records the parsed params.
- # This should be sufficient for body inspection. If we come across a case where
- # it is not we can consider re-enabling this.
- # @body = Util::HTTPEvent.normalize_body(attributes[:body])
end
def to_hash
{body: body, headers: headers, host: host, method: method, path: path, port: port,
query_string: query_string, request_id: request_id, scheme: scheme}
\ No newline at end of file