Stop logging queries