aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/log_subscriber.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-06-17 08:11:47 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-06-17 08:11:47 -0700
commit625c4959573c608140005425ff709422b35ba6a3 (patch)
tree9b03e2449a1c5a0235535d1f99a3e2500fae0bc5 /activesupport/lib/active_support/log_subscriber.rb
parentebe9679d9424fbc06f6f870d9003cd20fbc130af (diff)
parentc9891608aa1e5ebbab04afe73bf7a28748001804 (diff)
downloadrails-625c4959573c608140005425ff709422b35ba6a3.tar.gz
rails-625c4959573c608140005425ff709422b35ba6a3.tar.bz2
rails-625c4959573c608140005425ff709422b35ba6a3.zip
Merge pull request #6759 from dylanahsmith/only-catch-standard-error
Avoid unnecessary catching of Exception instead of StandardError.
Diffstat (limited to 'activesupport/lib/active_support/log_subscriber.rb')
-rw-r--r--activesupport/lib/active_support/log_subscriber.rb2
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 bea2ca17f1..d5f0e3fa6c 100644
--- a/activesupport/lib/active_support/log_subscriber.rb
+++ b/activesupport/lib/active_support/log_subscriber.rb
@@ -92,7 +92,7 @@ module ActiveSupport
method = message.split('.').first
begin
send(method, ActiveSupport::Notifications::Event.new(message, *args))
- rescue Exception => e
+ rescue => e
logger.error "Could not log #{message.inspect} event. #{e.class}: #{e.message} #{e.backtrace}"
end
end