You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi when there is an error in my application, I keep getting the error message "error notifications are disabled" regardless of what I do in config and in any environment. I get the same error when I do rake airbrake:test
Digging in to the code I came across "/lib/airbrake-ruby/config/validator.rb"
Line 47
unlessconfig.error_notificationsreturnpromise.reject('error notifications are disabled')end
Can you please explain how I can set error_notifications in my configuration.
If I delete that code from "/lib/airbrake-ruby/config/validator.rb" everything works fine.
Googling it I see no docs out there for it. Some suggested that I set config.consider_all_requests_local = false which does not work either. Going to this page absolutely did not help what so ever.
My Config
I have set the proper value in ENV variables AIRBRAKE_PROJECT_ID and AIRBRAKE_PROJECT_KEY
if(project_id=ENV['AIRBRAKE_PROJECT_ID']) &&
project_key=(ENV['AIRBRAKE_PROJECT_KEY'] || ENV['AIRBRAKE_API_KEY'])Airbrake.configuredo |c|
c.project_id=project_idc.project_key=project_keyc.root_directory=Rails.rootc.logger=Airbrake::Rails.loggerc.environment=Rails.envc.ignore_environments=%w[test]c.blocklist_keys=[/password/i,/authorization/i]endelseRails.logger.warn("#{__FILE__}: Airbrake project id or project key is not set. " \
"Skipping Airbrake configuration")end
I even tried setting c.error_notifications = true but no luck
The text was updated successfully, but these errors were encountered:
SaimonL
changed the title
Error notifications are disabled
Error notifications are disabled (missing doc?)
Oct 28, 2023
Hi when there is an error in my application, I keep getting the error message "error notifications are disabled" regardless of what I do in config and in any environment. I get the same error when I do
rake airbrake:test
Digging in to the code I came across "/lib/airbrake-ruby/config/validator.rb"
Line 47
Can you please explain how I can set
error_notifications
in my configuration.If I delete that code from "/lib/airbrake-ruby/config/validator.rb" everything works fine.
Googling it I see no docs out there for it. Some suggested that I set
config.consider_all_requests_local = false
which does not work either. Going to this page absolutely did not help what so ever.My Config
I have set the proper value in ENV variables
AIRBRAKE_PROJECT_ID
andAIRBRAKE_PROJECT_KEY
I even tried setting
c.error_notifications = true
but no luckThe text was updated successfully, but these errors were encountered: