Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log the full path, including variant, that the digestor is trying to …

…find
  • Loading branch information...
commit 4bca34750d718a6f7a9bacbe181460b4505c4ba7 1 parent 06b4f01
@dhh dhh authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 actionview/lib/action_view/digestor.rb
View
7 actionview/lib/action_view/digestor.rb
@@ -75,20 +75,21 @@ def compute_and_store_digest(cache_key, options) # called under @@digest_monitor
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

0 comments on commit 4bca347

Please sign in to comment.
Something went wrong with that request. Please try again.