Sha256: d406974ad93119627b9fc9928cbbbae532d58d7c11c2475ebe68ceed29e8a1d2
Contents?: true
Size: 643 Bytes
Versions: 8
Compression:
Stored size: 643 Bytes
Contents
require 'mailman' module Bugsnag class Mailman def initialize Bugsnag.configuration.internal_middleware.use(Bugsnag::Middleware::Mailman) Bugsnag.configuration.app_type = "mailman" end def call(mail) begin Bugsnag.set_request_data :mailman_msg, 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
8 entries across 8 versions & 1 rubygems