Sha256: b0a6043a96174da63dcb6e4cab777cbbbde17756e665840f8c56eb5c3b1e8a1a

Contents?: true

Size: 451 Bytes

Versions: 21

Compression:

Stored size: 451 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}")
        super
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
honeybadger-2.0.12 lib/honeybadger/backend/debug.rb
honeybadger-2.0.11 lib/honeybadger/backend/debug.rb
honeybadger-2.0.10 lib/honeybadger/backend/debug.rb
honeybadger-2.0.9 lib/honeybadger/backend/debug.rb
honeybadger-2.0.8 lib/honeybadger/backend/debug.rb
honeybadger-2.0.6 lib/honeybadger/backend/debug.rb
honeybadger-2.0.5 lib/honeybadger/backend/debug.rb
honeybadger-2.0.4 lib/honeybadger/backend/debug.rb
honeybadger-2.0.3 lib/honeybadger/backend/debug.rb
honeybadger-2.0.2 lib/honeybadger/backend/debug.rb
honeybadger-2.0.1 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.13 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.12 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.11 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.10 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.9 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.8 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.7 lib/honeybadger/backend/debug.rb
honeybadger-2.0.0.beta.6 lib/honeybadger/backend/debug.rb