Browse Source

common log optimize

pull/1572/head
liyihan2@huawei.com 4 years ago
parent
commit
070b6a176a
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      ge/common/profiling/profiling_manager.cc

+ 4
- 6
ge/common/profiling/profiling_manager.cc View File

@@ -204,7 +204,7 @@ ge::Status ProfilingManager::ParseOptions(const std::string &options) {
is_training_trace_ = true;
} catch (...) {
GELOGE(FAILED, "[Check][Param]Json prof_conf options is invalid");
REPORT_INNER_ERRO("E19999", "Json prof_conf options is invalid");
REPORT_INNER_ERROR("E19999", "Json prof_conf options is invalid");
return ge::PARAM_INVALID;
}
return ge::SUCCESS;
@@ -601,7 +601,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfFi
int32_t dev_num = -1;
rtError_t rt_ret = rtProfilerStop(PROF_MODEL_LOAD_MASK, dev_num, nullptr);
if (rt_ret != RT_ERROR_NONE) {
GELOGE(FAILED, "[Stop][Profiler]Failed, ret 0x%X" rt_ret);
GELOGE(FAILED, "[Stop][Profiler]Failed, ret 0x%X", rt_ret);
REPORT_CALL_ERROR("E19999", "Stop rumtime profiler faield, ret 0x%X", rt_ret);
return FAILED;
}
@@ -670,10 +670,8 @@ Status ProfilingManager::ProfParseDeviceId(const std::map<std::string, std::stri
}
}
} else {
GELOGE(FAILED, "[Parse][DeviceId]Config para not contain device id %s list",
decvice_id[i].c_str());
REPORT_CALL_ERROR("E19999", "Parse device id failed, config para not contain device id %s list",
decvice_id[i].c_str());
GELOGE(FAILED, "[Parse][DeviceId]Config para not contain device id list");
REPORT_CALL_ERROR("E19999", "Parse device id failed, config para not contain device id list");
return FAILED;
}
#endif


Loading…
Cancel
Save