reenable logging
This commit is contained in:
parent
28a997c2cd
commit
4ed621fc1f
1 changed files with 1 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ class ActionView::LogSubscriber
|
||||||
|
|
||||||
hash.merge(:layout => event.payload[:layout]) if event.payload[:layout]
|
hash.merge(:layout => event.payload[:layout]) if event.payload[:layout]
|
||||||
|
|
||||||
#Rails.logger.info(hash)
|
Rails.logger.info(hash)
|
||||||
end
|
end
|
||||||
alias :render_partial :render_template
|
alias :render_partial :render_template
|
||||||
alias :render_collection :render_template
|
alias :render_collection :render_template
|
||||||
|
|
@ -81,7 +81,6 @@ end
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
class LogSubscriber
|
class LogSubscriber
|
||||||
def sql(event)
|
def sql(event)
|
||||||
return
|
|
||||||
self.class.runtime += event.duration
|
self.class.runtime += event.duration
|
||||||
return unless logger.info?
|
return unless logger.info?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue