Add debug logging around termlist response