Debug statements - take them out later
This commit is contained in:
parent
f99c726085
commit
c6a37a424b
|
@ -78,6 +78,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the converted content
|
# Returns the converted content
|
||||||
def render_liquid(content, payload, info)
|
def render_liquid(content, payload, info)
|
||||||
|
Jekyll.logger.debug "Rendering Liquid for #{self.path}", ""
|
||||||
Liquid::Template.parse(content).render!(payload, info)
|
Liquid::Template.parse(content).render!(payload, info)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{payload[:file]}"
|
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{payload[:file]}"
|
||||||
|
|
|
@ -33,6 +33,7 @@ module Jekyll
|
||||||
|
|
||||||
def render_all_layouts(layouts, payload, info)
|
def render_all_layouts(layouts, payload, info)
|
||||||
output = content
|
output = content
|
||||||
|
Jekyll.logger.debug "Output of", "#{self.path} => '#{self.output}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
# The UID for this post (useful in feeds).
|
# The UID for this post (useful in feeds).
|
||||||
|
@ -51,6 +52,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
Jekyll.logger.debug "Excerpt#to_s:", "#{output} || #{content}"
|
||||||
output || content
|
output || content
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue