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-2.5.1 lib/honeybadger/backend/debug.rb
honeybadger-2.5.0 lib/honeybadger/backend/debug.rb
honeybadger-2.4.1 lib/honeybadger/backend/debug.rb
honeybadger-2.4.0 lib/honeybadger/backend/debug.rb
honeybadger-2.3.3 lib/honeybadger/backend/debug.rb
honeybadger-2.3.2 lib/honeybadger/backend/debug.rb
honeybadger-2.3.2.beta.1 lib/honeybadger/backend/debug.rb
honeybadger-2.3.1 lib/honeybadger/backend/debug.rb
honeybadger-2.3.0 lib/honeybadger/backend/debug.rb
honeybadger-2.2.0 lib/honeybadger/backend/debug.rb
honeybadger-2.2.0.beta.1 lib/honeybadger/backend/debug.rb
honeybadger-2.1.6.beta.1 lib/honeybadger/backend/debug.rb
honeybadger-2.1.5 lib/honeybadger/backend/debug.rb
honeybadger-2.1.4 lib/honeybadger/backend/debug.rb
honeybadger-2.1.3 lib/honeybadger/backend/debug.rb
honeybadger-2.1.1 lib/honeybadger/backend/debug.rb
honeybadger-mubi-2.1.1 lib/honeybadger/backend/debug.rb
honeybadger-2.1.0 lib/honeybadger/backend/debug.rb
honeybadger-2.1.0.beta.1 lib/honeybadger/backend/debug.rb