Sha256: cbc2be5e8e8a3d849591c190a9e8b9f13370ea782ae4428fb72c460ff1352fb3
Contents?: true
Size: 986 Bytes
Versions: 42
Compression:
Stored size: 986 Bytes
Contents
require 'honeybadger/backend/null' module Honeybadger module Backend # Logs the notice payload rather than sending it. The purpose of this # backend is primarily for programmatically inspecting JSON payloads in # integration tests. class Debug < Null 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 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 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 end end end
Version data entries
42 entries across 42 versions & 1 rubygems