Class: Bugsnag::Middleware::Mailman
- Inherits:
-
Object
- Object
- Bugsnag::Middleware::Mailman
- Defined in:
- lib/bugsnag/middleware/mailman.rb
Overview
Extracts and attaches mailman data to an error report
Instance Method Summary collapse
- #call(report) ⇒ Object
-
#initialize(bugsnag) ⇒ Mailman
constructor
A new instance of Mailman.
Constructor Details
#initialize(bugsnag) ⇒ Mailman
Returns a new instance of Mailman.
5 6 7 |
# File 'lib/bugsnag/middleware/mailman.rb', line 5 def initialize(bugsnag) @bugsnag = bugsnag end |
Instance Method Details
#call(report) ⇒ Object
9 10 11 12 13 |
# File 'lib/bugsnag/middleware/mailman.rb', line 9 def call(report) mailman_msg = report.request_data[:mailman_msg] report.add_tab(:mailman, {"message" => mailman_msg}) if mailman_msg @bugsnag.call(report) end |