Module: MandrillQueue::Hooks
Instance Method Summary collapse
Methods included from Logging
log_results, logger, pretty, result_formatter
Instance Method Details
#on_failure_logging(error, message) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mandrill_queue/worker/hooks.rb', line 9 def on_failure_logging(error, ) s = StringIO.new PP.pp(, s) s.rewind logging.error " \#{'=' * 50}\n An exception has occurred for the following message:\\n\#{pretty(message)}\n TXT\n logging.error(error)\n logging.error('=' * 50)\nend\n".strip |