lib/wat_catcher/report.rb in wat_catcher-0.3.2 vs lib/wat_catcher/report.rb in wat_catcher-0.4.0
- old
+ new
@@ -17,22 +17,17 @@
{ wat: base_description.merge(exception_description).merge(request_description).merge(worker_description).merge(param_exception_description) }
end
def param_exception_description
return {} if exception || request.blank?
- wat_params = request.params[:wat]
- {
- message: wat_params[:message],
- backtrace: wat_params[:backtrace],
- page_url: wat_params[:page_url],
- request_params: nil
- }
+ request.params[:wat].merge(request_params: nil)
end
def base_description
{
app_env: ::Rails.env.to_s,
- app_name: ::Rails.application.class.parent_name
+ app_name: ::Rails.application.class.parent_name,
+ language: "ruby"
}
end
def exception_description
return {} unless exception