Browse Source

client log optimize

pull/1227/head
liyihan2@huawei.com 5 years ago
parent
commit
a4d6b689f1
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ge/client/ge_api.cc

+ 3
- 3
ge/client/ge_api.cc View File

@@ -69,7 +69,7 @@ Status CheckOptionsValid(const std::map<string, string> &options) {
auto job_id_iter = options.find(OPTION_EXEC_JOB_ID);
if (job_id_iter != options.end()) {
if (job_id_iter->second.length() > kMaxStrLen) {
GELOGE(PARAM_INVALID, "[Check][Job_id]Before execution, check job_id failed,the job_id string length: %d > max string length: %d", job_id_iter->second.length(), kMaxStrLen);
GELOGE(PARAM_INVALID, "[Check][Job_id]Before execution, check job_id failed,the job_id string length: %u > max string length: %d", job_id_iter->second.length(), kMaxStrLen);
return FAILED;
}
}
@@ -84,7 +84,7 @@ Status GEInitializeImpl(const std::map<string, string> &options) {
std::string path_base = ge::GELib::GetPath();
auto ret = ErrorManager::GetInstance().Init(path_base);
if (ret != SUCCESS) {
GELOGE(GE_CLI_INIT_FAILED, "[Check][Path_base]GELib init fail because GELib path_base: %s is invalid", path_base);
GELOGE(GE_CLI_INIT_FAILED, "[Check][Path_base]GELib init fail because GELib path_base: %s is invalid", path_base.c_str());
return ret;
}

@@ -104,7 +104,7 @@ Status GEInitializeImpl(const std::map<string, string> &options) {
bool is_proto_init = manager->Initialize(option_tmp);
GE_TIMESTAMP_END(GEInitialize, "GEInitialize::ManagerInitialize");
if (!is_proto_init) {
GELOGE(GE_CLI_INIT_FAILED, "[LoadOpsProtoLibPlugin][OpsProtoPath]Loading OpsProto lib plugin failed because ops proto path: %s is invalid.", opsproto_path);
GELOGE(GE_CLI_INIT_FAILED, "[LoadOpsProtoLibPlugin][OpsProtoPath]Loading OpsProto lib plugin failed because ops proto path: %s is invalid.", opsproto_path.c_str());
return FAILED;
}



Loading…
Cancel
Save