Class: Bugsnag::Mailman
- Inherits:
-
Object
- Object
- Bugsnag::Mailman
- Defined in:
- lib/bugsnag/mailman.rb
Instance Method Summary collapse
Instance Method Details
#call(mail) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bugsnag/mailman.rb', line 5 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 |