Add query to request logs