agent: log task chain properly
Merge pull request #864 from bcwaldon/log-tc

agent: log task chain properly