mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add lost log messages about template rendering
This commit is contained in:
parent
a13d335461
commit
cdda7defa0
2 changed files with 3 additions and 1 deletions
|
@ -1122,7 +1122,6 @@ module ActionController #:nodoc:
|
|||
|
||||
private
|
||||
def render_for_file(template_path, status = nil, layout = nil, locals = {}) #:nodoc:
|
||||
logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
|
||||
render_for_text @template.render(:file => template_path, :locals => locals, :layout => layout), status
|
||||
end
|
||||
|
||||
|
|
|
@ -253,6 +253,7 @@ module ActionView #:nodoc:
|
|||
ActiveSupport::Deprecation.warn("use_full_path option has been deprecated and has no affect.", caller)
|
||||
end
|
||||
|
||||
logger.info("Rendering #{options[:file]}") if logger
|
||||
pick_template(options[:file]).render_template(self, options[:locals])
|
||||
elsif options[:partial]
|
||||
render_partial(options)
|
||||
|
@ -352,6 +353,8 @@ module ActionView #:nodoc:
|
|||
|
||||
def render_with_layout(options, local_assigns, &block)
|
||||
partial_layout = options.delete(:layout)
|
||||
logger.info("Rendering template within #{partial_layout}") if logger
|
||||
|
||||
if block_given?
|
||||
begin
|
||||
@_proc_for_layout = block
|
||||
|
|
Loading…
Reference in a new issue