Skip to content
This repository
Browse code

Add lost log messages about template rendering

  • Loading branch information...
commit cdda7defa0a37ff776ca961c8eeae347a46dd59b 1 parent a13d335
Pratik authored August 31, 2008
1  actionpack/lib/action_controller/base.rb
@@ -1122,7 +1122,6 @@ def reset_session #:doc:
1122 1122
 
1123 1123
     private
1124 1124
       def render_for_file(template_path, status = nil, layout = nil, locals = {}) #:nodoc:
1125  
-        logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
1126 1125
         render_for_text @template.render(:file => template_path, :locals => locals, :layout => layout), status
1127 1126
       end
1128 1127
 
3  actionpack/lib/action_view/base.rb
@@ -253,6 +253,7 @@ def render(options = {}, local_assigns = {}, &block) #:nodoc:
253 253
             ActiveSupport::Deprecation.warn("use_full_path option has been deprecated and has no affect.", caller)
254 254
           end
255 255
 
  256
+          logger.info("Rendering #{options[:file]}") if logger
256 257
           pick_template(options[:file]).render_template(self, options[:locals])
257 258
         elsif options[:partial]
258 259
           render_partial(options)
@@ -352,6 +353,8 @@ def set_controller_content_type(content_type)
352 353
 
353 354
       def render_with_layout(options, local_assigns, &block)
354 355
         partial_layout = options.delete(:layout)
  356
+        logger.info("Rendering template within #{partial_layout}") if logger
  357
+
355 358
         if block_given?
356 359
           begin
357 360
             @_proc_for_layout = block

0 notes on commit cdda7de

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