Skip to content

Commit

Permalink
minor: preview_task_tree报错时添加日志信息
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls authored and hanshuaikang committed Dec 5, 2023
1 parent f2e5467 commit 41c9be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/taskflow3/apis/django/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def preview_task_tree(request, project_id):
data = preview_template_tree(project_id, template_source, template_id, version, exclude_task_nodes_id)
except Exception as e:
message = _(f"任务数据请求失败: 请求任务数据发生异常: {e}. 请重试, 如多次失败可联系管理员处理 | preview_task_tree")
logger.error(message)
logger.exception(message)
return JsonResponse({"result": False, "message": message})

return JsonResponse({"result": True, "data": data})
Expand Down

0 comments on commit 41c9be3

Please sign in to comment.