Sha256: 0b488c27f4c03126b9919299d8b4ef7ed1fd7ebb5d8485f27b446b1ab752e7a6
Contents?: true
Size: 751 Bytes
Versions: 40
Compression:
Stored size: 751 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 end end end
Version data entries
40 entries across 40 versions & 1 rubygems