aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
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
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')
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_view/renderable.rb5
2 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index cb61c8d2dd..7d18e062b7 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*Edge*
+* Stopped logging template compiles as it only clogs up the log [DHH]
+
* Changed the X-Runtime header to report in milliseconds [DHH]
* Changed BenchmarkHelper#benchmark to report in milliseconds [DHH]
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")}"