From 4bca34750d718a6f7a9bacbe181460b4505c4ba7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Mar 2014 20:51:13 +0100 Subject: Log the full path, including variant, that the digestor is trying to find --- actionview/lib/action_view/digestor.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index af7cfcfb6b..5dbd86df29 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -75,20 +75,21 @@ module ActionView end end - attr_reader :name, :format, :variant, :finder, :options + attr_reader :name, :format, :variant, :path, :finder, :options def initialize(options_or_deprecated_name, *deprecated_args) options = self.class._options_for_digest(options_or_deprecated_name, *deprecated_args) @options = options.except(:name, :format, :variant, :finder) @name, @format, @variant, @finder = options.values_at(:name, :format, :variant, :finder) + @path = "#{@name}.#{format}".tap { |path| path << "+#{@variant}" if @variant } end def digest Digest::MD5.hexdigest("#{source}-#{dependency_digest}").tap do |digest| - logger.try :info, "Cache digest for #{name}.#{format}: #{digest}" + logger.try :info, "Cache digest for #{path}: #{digest}" end rescue ActionView::MissingTemplate - logger.try :error, "Couldn't find template for digesting: #{name}.#{format}" + logger.try :error, "Couldn't find template for digesting: #{path}" '' end -- cgit v1.2.3