Sha256: c0baf4a8b22f2d73576a57bd846804dbe4f01d166daf913db5b1f02ec32f446d

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

class UniformNotifier
  class SentryNotifier < Base
    def self.active?
      !!UniformNotifier.sentry
    end

    protected

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

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

      exception = Exception.new(message)
      Raven.capture_exception(exception, opt)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uniform_notifier-1.11.0 lib/uniform_notifier/sentry.rb