Sha256: 1f675780cc3ab87dfddebb7ae329925a592aca3eb4c53cb0d8ad492f2fef54f8
Contents?: true
Size: 593 Bytes
Versions: 18
Compression:
Stored size: 593 Bytes
Contents
require 'airbrake' module Madvertise module Logging class ImprovedLogger # Log an exception with airbrake. # # @param [Exception] exc The exception to log. # @param [String] message Additional reason to log. def exception_with_airbrake(exc, message = nil, attribs = {}) Airbrake.notify_or_ignore(exc, { :error_message => message, :cgi_data => ENV.to_hash, }.merge(attribs)) end alias_method :exception_without_airbrake, :exception alias_method :exception, :exception_with_airbrake end end end
Version data entries
18 entries across 18 versions & 1 rubygems