Sha256: 584594a6e1ffe2ddffea29a8c7b2a6d8389e71ee8b5b0a1b242262fc4e278079

Contents?: true

Size: 549 Bytes

Versions: 39

Compression:

Stored size: 549 Bytes

Contents

require 'honeybadger/backend/null'

module Honeybadger
  module Backend
    # Internal: 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
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
honeybadger-3.2.0.beta1 lib/honeybadger/backend/debug.rb
honeybadger-3.1.2 lib/honeybadger/backend/debug.rb
honeybadger-3.1.1 lib/honeybadger/backend/debug.rb
honeybadger-3.1.0 lib/honeybadger/backend/debug.rb
honeybadger-3.0.2 lib/honeybadger/backend/debug.rb
honeybadger-3.0.1 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta6 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta5 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta4 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta3 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta2 lib/honeybadger/backend/debug.rb
honeybadger-2.7.2 lib/honeybadger/backend/debug.rb
honeybadger-3.0.0.beta1 lib/honeybadger/backend/debug.rb
honeybadger-2.7.1 lib/honeybadger/backend/debug.rb
honeybadger-2.7.0 lib/honeybadger/backend/debug.rb
honeybadger-2.6.1 lib/honeybadger/backend/debug.rb
honeybadger-2.6.0 lib/honeybadger/backend/debug.rb
honeybadger-2.5.3 lib/honeybadger/backend/debug.rb
honeybadger-2.5.2 lib/honeybadger/backend/debug.rb