Sha256: 5a496345004dfe7edc0381d6606ed522ffdada2727d6367c398cb7a0f5a9a747
Contents?: true
Size: 656 Bytes
Versions: 15
Compression:
Stored size: 656 Bytes
Contents
require 'airbrake' module Vx module Common class ErrorNotifier class << self def notify(error) if setup ::Airbrake.notify(error) end end def setup @configured ||= begin return false unless ENV['AIRBRAKE_API_KEY'] ::Airbrake.configure do |config| config.api_key = ENV['AIRBRAKE_API_KEY'] config.host = ENV['AIRBRAKE_HOST'] config.port = ENV['AIRBRAKE_PORT'] || 80 config.secure = config.port == 443 end true end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems