reevoo/sapience-rb

View on GitHub
lib/sapience/extensions/action_view/log_subscriber.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
require "action_view/log_subscriber"

module Sapience
  module Extensions
    module ActionView
      class LogSubscriber < ::ActionView::LogSubscriber
        include Sapience::Loggable

        def info(message = nil, &block)
          logger.debug(message, &block)
        end

        def info?
          logger.debug?
        end
      end
    end
  end
end