lib/honeybadger/agent.rb in honeybadger-4.6.0 vs lib/honeybadger/agent.rb in honeybadger-4.7.0

- old
+ new

@@ -61,15 +61,17 @@ @config = opts opts = {} end @context = opts.delete(:context) - if opts.delete(:local_context) + local_context = opts.delete(:local_context) + + @config ||= Config.new(opts) + + if local_context @context ||= ContextManager.new @breadcrumbs = Breadcrumbs::Collector.new(config) end - - @config ||= Config.new(opts) init_worker end # Sends an exception to Honeybadger. Does not report ignored exceptions by