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
I see that since #636 you can set remote_config: false but then it doesn't work anywhere, or you can do something like remote_config: ["development", "test"].include?(Rails.env.to_s) but then you're duplicating config. Either way the readme vaguely advises against this - "it is not recommended to disable this feature. It might negatively impact how your notifier works. Please use this option with caution.".
Let's keep test hardcoded there. In 100% of cases, we don't want that call to happen while people test their libraries. By default, ignore_environments is empty, and therefore it might force everyone to configure it just because of this pesky HTTP call. I would accept a PR that takes ignore environments into account but also keeps test there.
If you open a Rails console or Rails server and use a gem like https://github.com/martinbtt/net-http-spy you will periodically see requests like this:
I see that since #636 you can set
remote_config: false
but then it doesn't work anywhere, or you can do something likeremote_config: ["development", "test"].include?(Rails.env.to_s)
but then you're duplicating config. Either way the readme vaguely advises against this - "it is not recommended to disable this feature. It might negatively impact how your notifier works. Please use this option with caution.".Would you accept a PR that changes
airbrake-ruby/lib/airbrake-ruby/config/processor.rb
Line 46 in dfd766f
ignore_environments
?(If no that's fine, I figure logging this here will help anyone else who gets confused by this :))
The text was updated successfully, but these errors were encountered: