lib/honeybadger/cli/test.rb in honeybadger-3.1.2 vs lib/honeybadger/cli/test.rb in honeybadger-3.2.0.beta1
- old
+ new
@@ -92,13 +92,13 @@
# uses ActionDispatch::ShowExceptions to rescue/show exceptions, but does
# not log anything but application trace. Rails 3.2 now falls back to
# logging the framework trace (moved to ActionDispatch::DebugExceptions),
# which caused cluttered output while running the test task.
defined?(::ActionDispatch::DebugExceptions) and
- ::ActionDispatch::DebugExceptions.class_eval { def logger(*args) ; @logger ||= Logger.new('/dev/null') ; end }
+ ::ActionDispatch::DebugExceptions.class_eval { def logger(*args) ; @logger ||= Logger.new(nil) ; end }
defined?(::ActionDispatch::ShowExceptions) and
- ::ActionDispatch::ShowExceptions.class_eval { def logger(*args) ; @logger ||= Logger.new('/dev/null') ; end }
+ ::ActionDispatch::ShowExceptions.class_eval { def logger(*args) ; @logger ||= Logger.new(nil) ; end }
# Detect and disable the better_errors gem
if defined?(::BetterErrors::Middleware)
say('Better Errors detected: temporarily disabling middleware.', :yellow)
::BetterErrors::Middleware.class_eval { def call(env) @app.call(env); end }
@@ -160,11 +160,11 @@
Honeybadger.flush
if calling = TestBackend.callings[:notices].find {|c| c[0].exception.eql?(TEST_EXCEPTION) }
notice, response = *calling
- if response.code != 201
+ if !response.success?
host = Honeybadger.config.get(:'connection.host')
say(<<-MSG, :red)
!! --- Honeybadger test failed ------------------------------------------------ !!
The error notifier is installed, but we encountered an error:
@@ -210,11 +210,11 @@
unless notices.empty?
say("\nThe following errors were reported:", :red)
notices.each {|n| say("\n - #{n.error_class}: #{n.error_message}", :red) }
end
- say("\nSee https://git.io/vXCYp for more troubleshooting help.\n\n", :red)
+ say("\nSee https://docs.honeybadger.io/gem-troubleshooting for more troubleshooting help.\n\n", :red)
say("!! --- End -------------------------------------------------------------------- !!", :red)
exit(1)
end
@@ -235,19 +235,19 @@
#{notice_url}
Optional steps:
- Show a feedback form on your error page:
- http://docs.honeybadger.io/gem-feedback
+ https://docs.honeybadger.io/gem-feedback
- Show a UUID or link to Honeybadger on your error page:
- http://docs.honeybadger.io/gem-informer
+ https://docs.honeybadger.io/gem-informer
- Track deployments (if you're using Capistrano, we already did this):
- http://docs.honeybadger.io/gem-deploys
+ https://docs.honeybadger.io/gem-deploys
If you ever need help:
- - Read the gem troubleshooting guide: https://git.io/vXCYp
- - Check out our documentation: http://docs.honeybadger.io/
+ - Read the gem troubleshooting guide: https://docs.honeybadger.io/gem-troubleshooting
+ - Check out our documentation: https://docs.honeybadger.io/
- Email the founders: support@honeybadger.io
Most people don't realize that Honeybadger is a small, bootstrapped company. We
really couldn't do this without you. Thank you for allowing us to do what we
love: making developers awesome.