Sha256: 84c4cd56b67e05c199bccc4bd3763fd523423a63b77c932735a22d22228f06f6

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 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(exc, message = nil, attribs = {})
        Airbrake.notify_or_ignore(exc, {
          :error_message => message,
          :cgi_data => ENV.to_hash,
        }.merge(attribs))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
madvertise-logging-0.9.2 lib/madvertise/logging/airbrake.rb