Sha256: e1e0631fe2c2272063ba164b07243a813e00b980f0bb97b64136bae20ed74ba4
Contents?: true
Size: 589 Bytes
Versions: 4
Compression:
Stored size: 589 Bytes
Contents
require 'airbrake' module Liquid 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
4 entries across 4 versions & 1 rubygems