Skip to content

Commit

Permalink
Merge pull request #24963 from fertapric/recover-db-runtime-on-produc…
Browse files Browse the repository at this point in the history
…tion-logs

Fix database runtimes on production log
  • Loading branch information
eileencodes committed Oct 6, 2016
2 parents bf5876a + b67e260 commit fd9abbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/lib/active_record/log_subscriber.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ def render_bind(attr, type_casted_value)
end end


def sql(event) def sql(event)
return unless logger.debug?

self.class.runtime += event.duration self.class.runtime += event.duration
return unless logger.debug?


payload = event.payload payload = event.payload


Expand Down

0 comments on commit fd9abbc

Please sign in to comment.