Module: Qless::Middleware::Sentry
- Defined in:
- lib/qless/middleware/sentry.rb
Overview
This middleware logs errors to the sentry exception notification service: getsentry.com/
Defined Under Namespace
Classes: SentryLogger
Instance Method Summary collapse
Instance Method Details
#around_perform(job) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/qless/middleware/sentry.rb', line 8 def around_perform(job) super rescue Exception => e SentryLogger.new(e, job).log raise end |