diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-04-20 18:01:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 18:01:57 -0400 |
commit | e88636f733ad81c10dffde2e084e77034bc920fe (patch) | |
tree | 14008fd3668addc20831878fe766379fde8d1be0 /activesupport | |
parent | 31a32b767fe389e36e2f580bc1b5ca317a5b566e (diff) | |
parent | 452f9ee0bcca071cb520d3d640acebdc91f5e3ef (diff) | |
download | rails-e88636f733ad81c10dffde2e084e77034bc920fe.tar.gz rails-e88636f733ad81c10dffde2e084e77034bc920fe.tar.bz2 rails-e88636f733ad81c10dffde2e084e77034bc920fe.zip |
Merge pull request #28582 from sbull/activejob-error-logging
Add error logging to Active Job
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/notifications.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb index 2df819e554..37dfdc0422 100644 --- a/activesupport/lib/active_support/notifications.rb +++ b/activesupport/lib/active_support/notifications.rb @@ -64,6 +64,8 @@ module ActiveSupport # If an exception happens during that particular instrumentation the payload will # have a key <tt>:exception</tt> with an array of two elements as value: a string with # the name of the exception class, and the exception message. + # The <tt>:exception_object</tt> key of the payload will have the exception + # itself as the value. # # As the previous example depicts, the class <tt>ActiveSupport::Notifications::Event</tt> # is able to take the arguments as they come and provide an object-oriented |