Sha256: 0b30d136d3b7cf3d17b4ced4744c546cfdba559ac2cbfc50da7d7408b4aac88e
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class RollbarNotifier < Base DEFAULT_LEVEL = 'info' class << self def active? !!UniformNotifier.rollbar end protected def _out_of_channel_notify(data) message = data.values.compact.join("\n") exception = Exception.new(message) level = UniformNotifier.rollbar.fetch(:level, DEFAULT_LEVEL) if UniformNotifier.rollbar.is_a?(Hash) level ||= DEFAULT_LEVEL Rollbar.log(level, exception) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems