diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-10-29 01:14:32 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-29 01:14:32 -0200 |
commit | f81a5ffbdec6c1d748aaef02ba10a6e0d86cbf3f (patch) | |
tree | 1fcad3574d79c217a95782255c7c000089840191 /actionpack/lib/action_dispatch | |
parent | a8b996a0eee9aae455c5f82fac0baf24edb3a9c1 (diff) | |
parent | f99c37583dab9e1a6d8a67a407def0b2408df706 (diff) | |
download | rails-f81a5ffbdec6c1d748aaef02ba10a6e0d86cbf3f.tar.gz rails-f81a5ffbdec6c1d748aaef02ba10a6e0d86cbf3f.tar.bz2 rails-f81a5ffbdec6c1d748aaef02ba10a6e0d86cbf3f.zip |
Merge pull request #26926 from gsamokovarov/debug-exceptions-plain-loggers
Support plain loggers in DebugExceptions
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index ee644f41c8..1a9018fe0c 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -38,7 +38,9 @@ module ActionDispatch end def render(*) - if logger = ActionView::Base.logger + logger = ActionView::Base.logger + + if logger && logger.respond_to?(:silence) logger.silence { super } else super |