one log message per query. log takes a block, and yields a hash which will be also included in the log

wrong log level

cleanup should probably go in another commit

cleanup should probably go in another commit