Browse Source

Common log optimize

tags/v1.3.0
liyihan2@huawei.com 3 years ago
parent
commit
51a9cd52e1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/client/ge_api.cc

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

@@ -70,8 +70,8 @@ Status CheckOptionsValid(const std::map<string, string> &options) {
if (job_id_iter != options.end()) { if (job_id_iter != options.end()) {
if (job_id_iter->second.length() > kMaxStrLen) { if (job_id_iter->second.length() > kMaxStrLen) {
GELOGE(PARAM_INVALID,"[Check][JobId]Failed," GELOGE(PARAM_INVALID,"[Check][JobId]Failed,"
"the job_id [%s] string length > max string length: %d",
job_id_iter->second.c_str(), kMaxStrLen);
"the job_id [%s] string length: %zu > max string length: %d",
job_id_iter->second.c_str(), job_id_iter->second.length(), kMaxStrLen);
REPORT_INPUT_ERROR("E10051", std::vector<std::string>({"id","length"}), std::vector<std::string>({job_id_iter->second, std::to_string(kMaxStrLen)})); REPORT_INPUT_ERROR("E10051", std::vector<std::string>({"id","length"}), std::vector<std::string>({job_id_iter->second, std::to_string(kMaxStrLen)}));
return FAILED; return FAILED;
} }


Loading…
Cancel
Save