Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize custom Honeybadger outside of callback method #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

growthcode
Copy link

Removes initialization warning that happens every around method:

1 single rspec:

⇒  rspec spec/interactors/new_policy/enroll_company_spec.rb:85
Skipping coverage generation. Set COVERAGE=1 to enable.
FileMagic v0.7.2: compiled magic version [5.39] does not match with shared library magic version [5.43]
Using webpack dev server on port 3100. Set CI environment variable to use precompiled assets.
Version 2 of the Ruby SDK will enter maintenance mode as of November 20, 2020. To continue receiving service updates and new features, please upgrade to Version 3. More information can be found here: https://aws.amazon.com/blogs/developer/deprecation-schedule-for-aws-sdk-for-ruby-v2/
Run options:
  include {:focus=>true, :locations=>{"./spec/interactors/new_policy/enroll_company_spec.rb"=>[85]}}
  exclude {:broken=>true}

Randomized with seed 65189
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12
: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: already initialized constant Honeybadger::Plugins::DelayedJob::Plugin::DelayedJobBadger
/Users/hetheberg/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/bundler/gems/honeybadger-ruby-120173126443/lib/honeybadger/plugins/delayed_job/plugin.rb:12: warning: previous definition of DelayedJobBadger was here
 1/1 |============================================================ 100 =============================================================>| Time: 00:00:02

Finished in 2.21 seconds (files took 5.22 seconds to load)
1 example, 0 failures

@growthcode growthcode force-pushed the remove_initialization_warning_for_honeybadger branch from a45fc62 to 0c4ba7e Compare December 14, 2022 20:16
@growthcode growthcode force-pushed the remove_initialization_warning_for_honeybadger branch from 0c4ba7e to 644707d Compare April 12, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant