diff options
author | Ethan <ethan@unth> | 2017-05-18 16:06:56 -0700 |
---|---|---|
committer | Ethan <ethan@unth> | 2017-05-24 12:53:52 -0700 |
commit | 8300234f9f79b78b78ba1cb90739c776fca8e030 (patch) | |
tree | f33504b81c8580a34a8f719848613b1a0655230c /activesupport/lib | |
parent | 3f90e9e36fd1688739aae5f5c6d971b3d7444968 (diff) | |
download | rails-8300234f9f79b78b78ba1cb90739c776fca8e030.tar.gz rails-8300234f9f79b78b78ba1cb90739c776fca8e030.tar.bz2 rails-8300234f9f79b78b78ba1cb90739c776fca8e030.zip |
lob subscriber should only rescue StandardError, not Exception
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/log_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index e2c4f33565..fd00b4bf83 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -81,7 +81,7 @@ module ActiveSupport def finish(name, id, payload) super if logger - rescue Exception => e + rescue => e logger.error "Could not log #{name.inspect} event. #{e.class}: #{e.message} #{e.backtrace}" end |