interceptor should mimick original method

This fix also makes the test order independent.

Here is the link to original log method https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L416-L429 .