DM Data Migration: How to Record Error Code Occurrence Time and Store error_info Information in a Table When a Task Fails?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: DM数据迁移,如何对报错代码记录发生时间,对于任务挂了,error_info信息怎么存表呀?

| username: 希希希望啊

【TiDB Usage Environment】Production Environment
【TiDB Version】7.5.1
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Phenomenon and Impact】Dear experts, for DM data migration, how can we record the occurrence time of error codes? For tasks that have failed, how can we store the error_info information in a table?
【Resource Configuration】Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
【Attachments: Screenshots/Logs/Monitoring】