testing to log every query chain