RUBY-808: Log queries with time to debug