lib/flail/exception.rb in flail-0.0.4 vs lib/flail/exception.rb in flail-0.0.5
- old
+ new
@@ -41,10 +41,10 @@
def extract
@extract ||= begin
info = {}
# rack env
- info[:rack] = @env.to_json(:except => ['flail.request', 'flail.request.data'])
+ info[:rack] = @env.except('flail.request', 'flail.request.data')
info[:class_name] = @exception.class.to_s # @exception class
info[:message] = @exception.to_s # error message
info[:trace] = @exception.backtrace # backtrace of error
info[:target_url] = request_data[:target_url] # url of request
info[:referer_url] = request_data[:referer_url] # referer