1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/lib/active_job
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
..
queue_adapters Revert #27850 following test breakage (#28427) 2017-03-15 17:46:28 +01:00
arguments.rb Removed deprecated #original_exception in ActiveJob::DeserializationError 2016-10-10 14:55:20 -03:00
base.rb applies new string literal convention in activejob/lib 2016-08-06 18:40:07 +02:00
callbacks.rb applies new string literal convention in activejob/lib 2016-08-06 18:40:07 +02:00
configured_job.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
core.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
enqueuing.rb Privatize unneededly protected method in Active Job 2016-12-24 21:16:13 +09:00
exceptions.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
execution.rb applies new string literal convention in activejob/lib 2016-08-06 18:40:07 +02:00
gem_version.rb Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
logging.rb Add error logging to Active Job 2017-03-27 17:10:24 -07:00
queue_adapter.rb remove unused require 2017-01-15 13:02:03 +09:00
queue_adapters.rb fix link to resque [ci skip] 2016-09-20 08:56:05 +09:00
queue_name.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
queue_priority.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
railtie.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
test_case.rb Add load hooks to all tests classes 2016-08-25 04:22:48 -03:00
test_helper.rb correctly set test adapter when configure the queue adapter on a per job (#26690) 2017-01-31 16:37:16 -05:00
translation.rb
version.rb applies new string literal convention in activejob/lib 2016-08-06 18:40:07 +02:00