Should you just log task_xml here?