Logging queries, sort of.