|
|
|
@@ -182,7 +182,7 @@ bool ParseSingleLine(const std::string &line, std::map<std::string, std::string> |
|
|
|
if (!temp.empty()) { |
|
|
|
std::string::size_type pos = temp.find_first_of(delimiter); |
|
|
|
if (pos == std::string::npos) { |
|
|
|
GELOGE(PARAM_INVALID, "Incorrect line [%s], it must include [%s].Perhaps you use illegal chinese symbol", |
|
|
|
GELOGE(ge::PARAM_INVALID, "Incorrect line [%s], it must include [%s].Perhaps you use illegal chinese symbol", |
|
|
|
line.c_str(), delimiter.c_str()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@@ -190,7 +190,7 @@ bool ParseSingleLine(const std::string &line, std::map<std::string, std::string> |
|
|
|
std::string map_key = TrimConf(temp.substr(0, pos)); |
|
|
|
std::string value = TrimConf(temp.substr(pos + 1)); |
|
|
|
if (map_key.empty() || value.empty()) { |
|
|
|
GELOGE(PARAM_INVALID, "Map_key or value empty. %s", line.c_str()); |
|
|
|
GELOGE(ge::PARAM_INVALID, "Map_key or value empty. %s", line.c_str()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
|