aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications/instrumenter.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-01 15:52:26 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-01-01 15:52:26 -0200
commit307b6b5e1383480fe1de4900be1d456853197c99 (patch)
treef8a3c91bd01986296791c2b1bdc1c3f8d3e08050 /activesupport/lib/active_support/notifications/instrumenter.rb
parent012f42a8b9b9576791109e435616a5dc5250c47b (diff)
parent3e48bfd49730331d8f09d4d96bb9a58959017a9c (diff)
downloadrails-307b6b5e1383480fe1de4900be1d456853197c99.tar.gz
rails-307b6b5e1383480fe1de4900be1d456853197c99.tar.bz2
rails-307b6b5e1383480fe1de4900be1d456853197c99.zip
Merge pull request #22856 from rthbound/adds-exception-object-to-instrumenter-payload
Adds exception object to instrumenter's payload
Diffstat (limited to 'activesupport/lib/active_support/notifications/instrumenter.rb')
-rw-r--r--activesupport/lib/active_support/notifications/instrumenter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb
index 67f2ee1a7f..91f94cb2d7 100644
--- a/activesupport/lib/active_support/notifications/instrumenter.rb
+++ b/activesupport/lib/active_support/notifications/instrumenter.rb
@@ -21,6 +21,7 @@ module ActiveSupport
yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
+ payload[:exception_object] = e
raise e
ensure
finish_with_state listeners_state, name, payload