Browse Source

日志整改4

pull/1274/head
liudingyan 5 years ago
parent
commit
3d269fcf7e
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      ge/omm/csa_interact.cc
  2. +5
    -5
      ge/opskernel_manager/ops_kernel_manager.cc

+ 1
- 1
ge/omm/csa_interact.cc View File

@@ -171,7 +171,7 @@ void CsaInteract::WriteInternalErrorCode() {
/// ///
Status CsaInteract::WriteHcomDetection(const std::string &content) { Status CsaInteract::WriteHcomDetection(const std::string &content) {
if (!is_init_) { if (!is_init_) {
GELOGE(INTERNAL_ERROR, "[init][CsaInteract] obj has not init, can't WriteJobState");
GELOGE(INTERNAL_ERROR, "[Init][CsaInteract] obj has not init, can't WriteJobState");
return INTERNAL_ERROR; return INTERNAL_ERROR;
} }




+ 5
- 5
ge/opskernel_manager/ops_kernel_manager.cc View File

@@ -85,7 +85,7 @@ Status OpsKernelManager::Initialize(const map<string, string> &options_const) {
initialize_ = options; initialize_ = options;
Status rst0 = plugin_manager_.InvokeAll<map<string, string> &, Status>(kInitialize, initialize_); Status rst0 = plugin_manager_.InvokeAll<map<string, string> &, Status>(kInitialize, initialize_);
if (rst0 == FAILED) { if (rst0 == FAILED) {
GELOGE(GE_OPS_GET_NO_VALID_SO, "[invoke][opskernelinfo]PluginManager InvokeAll failed.");
GELOGE(GE_OPS_GET_NO_VALID_SO, "[Invoke][OpsKernelInfo]PluginManager InvokeAll failed.");
return GE_OPS_GET_NO_VALID_SO; return GE_OPS_GET_NO_VALID_SO;
} }
Status rst1 = Status rst1 =
@@ -120,7 +120,7 @@ Status OpsKernelManager::Initialize(const map<string, string> &options_const) {
init_flag_ = true; init_flag_ = true;
return SUCCESS; return SUCCESS;
} else { } else {
GELOGE(ret, "[Check][So file] not find any valid so file.");
GELOGE(ret, "[Check][So File] not find any valid so file.");
return ret; return ret;
} }
} }
@@ -185,19 +185,19 @@ Status OpsKernelManager::ParsePluginOptions(const map<string, string> &options,
} catch (std::invalid_argument &) { } catch (std::invalid_argument &) {
GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data] failed, its value %s is invalid_argument, it must be 0 or 1.", GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data] failed, its value %s is invalid_argument, it must be 0 or 1.",
iter->second.c_str()); iter->second.c_str());
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed,its value %s is invalid_argument, it must be 0 or 1.",
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed, its value %s is invalid_argument, it must be 0 or 1.",
iter->second.c_str()); iter->second.c_str());
return GE_GRAPH_OPTIONS_INVALID; return GE_GRAPH_OPTIONS_INVALID;
} catch (std::out_of_range &) { } catch (std::out_of_range &) {
GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data]failed, its value %s is out of range, it must be 0 or 1.", GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data]failed, its value %s is out of range, it must be 0 or 1.",
iter->second.c_str()); iter->second.c_str());
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed,its value %s is out of range, it must be 0 or 1.",
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed, its value %s is out of range, it must be 0 or 1.",
iter->second.c_str()); iter->second.c_str());
return GE_GRAPH_OPTIONS_INVALID; return GE_GRAPH_OPTIONS_INVALID;
} catch (...) { } catch (...) {
GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data]option_key:%s, its value %s is invalid, it must be 0 or 1.", GELOGE(GE_GRAPH_OPTIONS_INVALID, "[Check][Data]option_key:%s, its value %s is invalid, it must be 0 or 1.",
plugin_name.c_str(), iter->second.c_str()); plugin_name.c_str(), iter->second.c_str());
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed,option_key:%s, "
REPORT_INNER_ERROR("E19999", "ParsePluginOptions failed, option_key:%s, "
"its value %s is invalid, it must be 0 or 1.", plugin_name.c_str(), iter->second.c_str()); "its value %s is invalid, it must be 0 or 1.", plugin_name.c_str(), iter->second.c_str());
return GE_GRAPH_OPTIONS_INVALID; return GE_GRAPH_OPTIONS_INVALID;
} }


Loading…
Cancel
Save