Sha256: 1c242e27589110a81c6c55fd2f4af4c7fefda36665d743b31b19a68503b7a9a1
Contents?: true
Size: 554 Bytes
Versions: 24
Compression:
Stored size: 554 Bytes
Contents
require 'mailman' module Bugsnag class Mailman def call(mail) begin Bugsnag.before_notify_callbacks << lambda {|notif| notif.add_tab(:mailman, {"message" => mail.to_s}) } yield rescue Exception => ex raise ex if [Interrupt, SystemExit, SignalException].include? ex.class Bugsnag.auto_notify(ex) raise ensure Bugsnag.clear_request_data end end end end if Mailman.config.respond_to?(:middleware) Mailman.config.middleware.add ::Bugsnag::Mailman end
Version data entries
24 entries across 24 versions & 1 rubygems