添加详细错误日志以排查任务数据格式错误

This commit is contained in:
Your Name 2026-01-23 15:24:06 +08:00
parent fa4cd70bc8
commit 9056099413

View File

@ -202,10 +202,10 @@ public class TaskController {
taskService.updateTask(id, task, userId);
}
} catch (Exception e) {
log.error("解析任务数据失败", e);
throw new com.designhub.exception.BusinessException(com.designhub.common.ResultCode.PARAM_ERROR, "任务数据格式错误");
log.error("解析任务数据失败: taskId={}, error={}", id, e.getMessage(), e);
throw new com.designhub.exception.BusinessException(com.designhub.common.ResultCode.PARAM_ERROR, "任务数据格式错误: " + e.getMessage());
}
return Result.success("更新成功");
}