mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Stopped logging template compiles as it only clogs up the log
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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")}"
|
||||
|
||||
Reference in New Issue
Block a user