class Honeybadger::Backend::Debug
Logs the notice payload rather than sending it. The purpose of this backend is primarily for programmatically inspecting JSON payloads in integration tests.
Public Instance Methods
Source
# File lib/honeybadger/backend/debug.rb, line 15 def check_in(id) logger.unknown("checking in debug backend with id=#{id}") return Response.new(ENV['DEBUG_BACKEND_STATUS'].to_i, nil) if ENV['DEBUG_BACKEND_STATUS'] super end
Calls superclass method
Source
# File lib/honeybadger/backend/debug.rb, line 21 def event(payload) logger.unknown("sending event to debug backend with event=#{payload.to_json}") return Response.new(ENV['DEBUG_BACKEND_STATUS'].to_i, nil) if ENV['DEBUG_BACKEND_STATUS'] super end
Calls superclass method
Source
# File lib/honeybadger/backend/debug.rb, line 9 def notify(feature, payload) logger.unknown("notifying debug backend of feature=#{feature}\n\t#{payload.to_json}") return Response.new(ENV['DEBUG_BACKEND_STATUS'].to_i, nil) if ENV['DEBUG_BACKEND_STATUS'] super end
Calls superclass method