feat: 重载枚举类型 AlgorithmType, ProcessTaskAction 的 std::to_string(), 并在回调与日志输出时使用 std::to_string()

This commit is contained in:
zzyyyl
2022-10-24 15:42:05 +08:00
parent 5236543d3d
commit fd4dfbf6ce
6 changed files with 111 additions and 62 deletions

View File

@@ -156,10 +156,10 @@ bool ProcessTask::_run()
info["details"] = json::object {
{ "task", cur_name },
{ "action", static_cast<int>(m_cur_task_ptr->action) },
{ "action", std::to_string(m_cur_task_ptr->action) },
{ "exec_times", exec_times },
{ "max_times", max_times },
{ "algorithm", static_cast<int>(m_cur_task_ptr->algorithm) },
{ "algorithm", std::to_string(m_cur_task_ptr->algorithm) },
};
callback(AsstMsg::SubTaskStart, info);