Permalink
Browse files

Merge pull request #24963 from fertapric/recover-db-runtime-on-produc…

…tion-logs

Fix database runtimes on production log
  • Loading branch information...
eileencodes committed Oct 6, 2016
2 parents bf5876a + b67e260 commit fd9abbc4461021d8bed72f5a34745a8271f02d85
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/log_subscriber.rb
@@ -26,9 +26,8 @@ def render_bind(attr, type_casted_value)
end
def sql(event)
return unless logger.debug?
self.class.runtime += event.duration
return unless logger.debug?
payload = event.payload

0 comments on commit fd9abbc

Please sign in to comment.