diff --git a/actionview/lib/action_view/log_subscriber.rb b/actionview/lib/action_view/log_subscriber.rb index 5e2d1561a5b..eecbdd19c88 100644 --- a/actionview/lib/action_view/log_subscriber.rb +++ b/actionview/lib/action_view/log_subscriber.rb @@ -96,6 +96,10 @@ module ActionView def finish(name, id, payload) end + + def silenced?(_) + logger.nil? || !logger.debug? + end end def self.attach_to(*)