Stopped logging template compiles as it only clogs up the log

This commit is contained in:
David Heinemeier Hansson
2008-09-09 22:10:39 -05:00
parent dc8b21dc3c
commit 6233628ba0
2 changed files with 3 additions and 4 deletions

View File

@@ -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]

View File

@@ -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")}"