Permalink
Browse files

Merge pull request #12396 from arthurnn/cleanup_logsubs

Cleanup identitymap logger from LogSubscriber
  • Loading branch information...
2 parents 33434f6 + 260f965 commit c2ee6a079e36f2cd4e9857605385526fad93abf3 @rafaelfranca rafaelfranca committed Sep 28, 2013
Showing with 2 additions and 11 deletions.
  1. +2 −11 activerecord/lib/active_record/log_subscriber.rb
@@ -17,7 +17,7 @@ def self.reset_runtime
def initialize
super
- @odd_or_even = false
+ @odd = false
end
def render_bind(column, value)
@@ -60,17 +60,8 @@ def sql(event)
debug " #{name} #{sql}#{binds}"
end
- def identity(event)
- return unless logger.debug?
-
- name = color(event.payload[:name], odd? ? CYAN : MAGENTA, true)
- line = odd? ? color(event.payload[:line], nil, true) : event.payload[:line]
-
- debug " #{name} #{line}"
- end
-
def odd?
- @odd_or_even = !@odd_or_even
+ @odd = !@odd
end
def logger

0 comments on commit c2ee6a0

Please sign in to comment.