rails/activejob/test
Steven Bull 452f9ee0bc Add error logging to Active Job
Active Job logging instrumentation is changed to log errors (with
backtrace) when a job raises an exception in #perform. This improves
debugging during development and test with the default configuration.

Prior to Rails 5, the default development configuration ran jobs with
InlineAdapter, which would raise exceptions to the caller and be
shown in the development log. In Rails 5, the default adapter was
changed to AsyncAdapter, which would silently swallow exceptions
and log a "Performed SomeJob from Async..." info message. This could
be confusing to a developer, as it would seem that the job was
performed successfully.

This patch removes the "Performed..." info message from the log
and adds an error-level "Error performing SomeJob..." log message
which includes the exception backtrace for jobs that raise an
exception within the #perform method. It provides this behavior for
all adapters.
2017-03-27 17:10:24 -07:00
..
adapters normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
cases Add error logging to Active Job 2017-03-27 17:10:24 -07:00
integration Added instance variable @queue to JobWrapper. 2016-08-19 17:10:27 +09:00
jobs Add error logging to Active Job 2017-03-27 17:10:24 -07:00
models Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
support make backburner integration test to work 2017-01-28 11:34:28 +09:00
helper.rb remove ActiveSupport.halt_callback_chains_on_return_false from everywhere 2017-02-08 17:24:49 +09:00