log bits of caller and a hashcode of caller, we'll probably want to take out logging caller as it may be slow

This commit is contained in:
Raphael Sofaer 2011-02-11 15:55:02 -08:00
parent ac667b7ecd
commit a9eef6018c

View file

@ -79,7 +79,7 @@ module ActiveRecord
}.inspect
end
info "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}' binds='#{binds}'"
info "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}' binds='#{binds}' caller_with_diaspora='#{caller.grep(/diaspora/).join(';')}' caller_hash='#{caller.hash}'"
end
end