如何设置Airbrake,使其从Ember应用程序中发生的未处理的Javascript错误中获取上下文信息? 最佳答案 假设您已经包含了Airbrake-js您可以HookEmber的onerror处理程序并推送错误。Ember.onerror=function(err){//anyembererrorAirbrake.push(err);//anyothererrorhandling};Ember.RSVP.configure('onerror',function(err){//anypromiseerrorAirbrake.pu
在空气制动Controller中,此代码有效(发出通知)救援=>前减速板通知但是rescue=>exnotify_airbrake(ex)end不发出任何减速板通知。如何制作notify_airbrake(ex)开始工作 最佳答案 您可能正在您的开发环境中对其进行测试。将此添加到您的airbrake.rb,它应该可以工作。config.development_environments=[] 关于ruby-airbrakenotify_airbrake方法在Controller中不起作用,
我使用Airbrake通知我SpreeCommerce商店中的错误。现在我想使用spree的API,当我尝试发布到http://localhost:3000/api/products以创建新产品时,出现以下错误:NoMethodError(undefinedmethod`airbrake_request_data'for#):activesupport(3.2.9)lib/active_support/core_ext/object/try.rb:36:in`try'airbrake(3.1.11)lib/airbrake/rails/middleware.rb:46:in`reque