aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderable.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-09-09 22:10:39 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-09-09 22:10:39 -0500
commit6233628ba0e948c58fdf67a70456798c2da590a3 (patch)
tree5dcdf60b4d5a24f1339ab05eb81703155441eec8 /actionpack/lib/action_view/renderable.rb
parentdc8b21dc3cbc65975940213b33e04c1eed1bd3a4 (diff)
downloadrails-6233628ba0e948c58fdf67a70456798c2da590a3.tar.gz
rails-6233628ba0e948c58fdf67a70456798c2da590a3.tar.bz2
rails-6233628ba0e948c58fdf67a70456798c2da590a3.zip
Stopped logging template compiles as it only clogs up the log
Diffstat (limited to 'actionpack/lib/action_view/renderable.rb')
-rw-r--r--actionpack/lib/action_view/renderable.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/renderable.rb b/actionpack/lib/action_view/renderable.rb
index 837d7f0882..0134bc988f 100644
--- a/actionpack/lib/action_view/renderable.rb
+++ b/actionpack/lib/action_view/renderable.rb
@@ -72,12 +72,9 @@ module ActionView
end_src
begin
- logger = defined?(ActionController) && Base.logger
- logger.debug "Compiling template #{render_symbol}" if logger
-
ActionView::Base::CompiledTemplates.module_eval(source, filename, 0)
rescue Exception => e # errors from template code
- if logger
+ if logger = defined?(ActionController) && Base.logger
logger.debug "ERROR: compiling #{render_symbol} RAISED #{e}"
logger.debug "Function body: #{source}"
logger.debug "Backtrace: #{e.backtrace.join("\n")}"