From b43d62078a6dd50ac1d20c941daab2870433956c Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Thu, 29 Apr 2021 15:37:48 +0800 Subject: [PATCH] common log optimize --- ge/engine_manager/dnnengine_manager.cc | 4 ++-- ge/graph/passes/input_output_connection_identify_pass.cc | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ge/engine_manager/dnnengine_manager.cc b/ge/engine_manager/dnnengine_manager.cc index 79d9264d..7a3f7aec 100644 --- a/ge/engine_manager/dnnengine_manager.cc +++ b/ge/engine_manager/dnnengine_manager.cc @@ -458,8 +458,8 @@ Status DNNEngineManager::ParserEngineMessage(const json engines_json, const std: Status DNNEngineManager::ReadJsonFile(const std::string &file_path, JsonHandle handle) { GELOGD("Begin to read json file"); if (file_path.empty()) { - GELOGE(FAILED, "[Check][Param]Json path is invalid"); - REPORT_INNER_ERROR("E19999", "Json path is invalid"); + GELOGE(FAILED, "[Check][Param]Json path is empty"); + REPORT_INNER_ERROR("E19999", "Json path is empty"); return FAILED; } nlohmann::json *json_file = reinterpret_cast(handle); diff --git a/ge/graph/passes/input_output_connection_identify_pass.cc b/ge/graph/passes/input_output_connection_identify_pass.cc index 6e2b3049..e27c2e1f 100644 --- a/ge/graph/passes/input_output_connection_identify_pass.cc +++ b/ge/graph/passes/input_output_connection_identify_pass.cc @@ -48,8 +48,6 @@ Status InputOutputConnectionIdentifyPass::Run(ComputeGraphPtr graph) { } if (graph->GetParentGraph() != nullptr) { - REPORT_INNER_ERROR("E19999", "Param graph's parent graph is nullptr, " - "check invalid"); GELOGD("Current graph %s is a subgraph, skip identification of nodes that connect to input and output.", graph->GetName().c_str()); return SUCCESS;