mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #29140 from notEthan/log_subscribed_avoid_rescuing
Log subscriber - avoid rescuing certain exceptions
This commit is contained in:
commit
9cf7217909
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ module ActiveSupport
|
|||
|
||||
def finish(name, id, payload)
|
||||
super if logger
|
||||
rescue Exception => e
|
||||
logger.error "Could not log #{name.inspect} event. #{e.class}: #{e.message} #{e.backtrace}"
|
||||
rescue => e
|
||||
if logger
|
||||
logger.error "Could not log #{name.inspect} event. #{e.class}: #{e.message} #{e.backtrace}"
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue