Module: SmartLogger::Job
- Defined in:
- lib/smart_logger/resque.rb
Instance Method Summary collapse
Instance Method Details
#around_perform_log_job(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/smart_logger/resque.rb', line 9 def around_perform_log_job(*args) SmartLogger.start "Job:#{ self.to_s }" begin yield rescue raise ensure SmartLogger.end ::Rails.logger.flush end end |