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 authored and matthewd committed Oct 6, 2016
1 parent 7547306 commit 314ffecd2a804c44e28bca243c62d61c3bddc26b
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/log_subscriber.rb
@@ -35,9 +35,8 @@ def render_bind(attribute)
end
def sql(event)
- return unless logger.debug?
-
self.class.runtime += event.duration
+ return unless logger.debug?
payload = event.payload

0 comments on commit 314ffec

Please sign in to comment.