Sha256: 391388e17e2e547e919115014b7569649e48695d88783cdaaccfdc9c9dd7753b

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

class UniformNotifier
  class HoneybadgerNotifier < Base
    def self.active?
      !!UniformNotifier.honeybadger
    end

    protected

    def self._out_of_channel_notify(data)
      message = data.values.compact.join("\n")

      opt = {}
      opt = UniformNotifier.honeybadger if UniformNotifier.honeybadger.is_a?(Hash)

      exception = Exception.new(message)
      honeybadger_class = opt[:honeybadger_class] || Honeybadger
      honeybadger_class.notify(exception, opt)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uniform_notifier-1.14.0 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.13.2 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.13.1 lib/uniform_notifier/honeybadger.rb
uniform_notifier-1.13.0 lib/uniform_notifier/honeybadger.rb