From 9e32dc97ccf0aa7044cdc68d918d6223d2f9ebee Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 2 Mar 2021 11:28:45 +0800 Subject: [PATCH 01/11] test --- ge/model/ge_model.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/ge/model/ge_model.cc b/ge/model/ge_model.cc index acaeff0d..36c352a3 100755 --- a/ge/model/ge_model.cc +++ b/ge/model/ge_model.cc @@ -19,6 +19,7 @@ #include "common/debug/log.h" #include "graph/debug/ge_attr_define.h" #include "graph/utils/attr_utils.h" +#include "imliyihan.h" namespace ge { void GeModel::Init() { From 9198f2a6518f5347d9efa33120db6412f9b8d372 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 17:20:50 +0800 Subject: [PATCH 02/11] log optimize --- ge/analyzer/analyzer.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index c63a6008..81cd762f 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { // Initialize file string real_path = RealPath(kFilePath.c_str()); if (real_path.empty()) { - GELOGE(FAILED, "File path is invalid."); + GELOGE(FAILED, "[Check][AnalyzerFilePath] File path:%s is invalid!", real_path.cstr()); return FAILED; } json_file_name_ = real_path + "/" + kAnalyzeFile; @@ -155,12 +155,12 @@ std::shared_ptr Analyzer::GetJsonObject(uint64_t session_id, uint64_t std::lock_guard lg(mutex_); auto iter = graph_infos_.find(session_id); if (iter == graph_infos_.end()) { - GELOGE(PARAM_INVALID, "session_id:%lu does not exist!", session_id); + GELOGE(PARAM_INVALID, "[Check][Session_id]session_id:%lu does not exist!", session_id); return nullptr; } else { auto iter1 = (iter->second).find(graph_id); if (iter1 == (iter->second).end()) { - GELOGE(PARAM_INVALID, "graph_id:%lu does not exist!", graph_id); + GELOGE(PARAM_INVALID, "[Check][Graph_id]graph_id:%lu does not exist!", graph_id); return nullptr; } GELOGI("GetJsonObject Success!session_id:%lu graph_id:%lu", session_id, graph_id); @@ -186,11 +186,11 @@ ge::Status Analyzer::CreateAnalyzerFile() { std::lock_guard lg(file_mutex_); int fd = open(json_file_name_.c_str(), O_WRONLY | O_CREAT | O_TRUNC, kFileAuthority); if (fd < 0) { - GELOGE(INTERNAL_ERROR, "Fail to open the file: %s.", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileOpen][AnalyzerFile]Fail to open the file: %s.", json_file_name_.c_str()); return INTERNAL_ERROR; } if (close(fd) != 0) { - GELOGE(INTERNAL_ERROR, "Fail to close the file: %s.", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileClose][AnalyzerFile]Fail to close the file: %s.", json_file_name_.c_str()); return INTERNAL_ERROR; } is_json_file_create_ = true; @@ -211,7 +211,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ std::lock_guard lg(file_mutex_); json_file_.open(json_file_name_, std::ios::app); if (!json_file_.is_open()) { - GELOGE(FAILED, "analyzer file does not exist[%s]", json_file_name_.c_str()); + GELOGE(FAILED, "[Check][AnalyzerFile]analyzer file does not exist[%s]", json_file_name_.c_str()); return PARAM_INVALID; } @@ -221,7 +221,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ try { json_file_ << jsn.dump(kJsonDumpLevel) << std::endl; } catch (nlohmann::detail::type_error &e) { - GELOGE(FAILED, "analyzer file [%s] failed because [%s]", json_file_name_.c_str(), e.what()); + GELOGE(FAILED, "[FindReason][AnalyzerFile]analyzer file [%s] failed because [%s]", json_file_name_.c_str(), e.what()); ret_failed = true; } json_file_.close(); @@ -241,7 +241,7 @@ ge::Status Analyzer::DoAnalyze(DataInfo &data_info) { GE_CHECK_NOTNULL(graph_info); auto status = SaveOpInfo(desc, data_info, graph_info); if (status != SUCCESS) { - GELOGE(status, "save op info failed!"); + GELOGE(status, "[Check][SaveOpInfo]save op info:pnode:%s desc:%s graph_info:%s failed!", pnode.cstr(), desc.cstr(), graph_info.cstr()); return FAILED; } // create json file From 1d5f7958f3cb00e8a2b3278ff9f6189cca65a932 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 20:18:50 +0800 Subject: [PATCH 03/11] log optimize --- ge/analyzer/analyzer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index 81cd762f..60d32fd4 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -155,12 +155,12 @@ std::shared_ptr Analyzer::GetJsonObject(uint64_t session_id, uint64_t std::lock_guard lg(mutex_); auto iter = graph_infos_.find(session_id); if (iter == graph_infos_.end()) { - GELOGE(PARAM_INVALID, "[Check][Session_id]session_id:%lu does not exist!", session_id); + GELOGE(PARAM_INVALID, "[Check][Session_id]session_id:%lu does not exist! graph_id:%lu", session_id, graph_id); return nullptr; } else { auto iter1 = (iter->second).find(graph_id); if (iter1 == (iter->second).end()) { - GELOGE(PARAM_INVALID, "[Check][Graph_id]graph_id:%lu does not exist!", graph_id); + GELOGE(PARAM_INVALID, "[Check][Graph_id]graph_id:%lu does not exist!session_id:%lu", graph_id, session_id); return nullptr; } GELOGI("GetJsonObject Success!session_id:%lu graph_id:%lu", session_id, graph_id); @@ -221,7 +221,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ try { json_file_ << jsn.dump(kJsonDumpLevel) << std::endl; } catch (nlohmann::detail::type_error &e) { - GELOGE(FAILED, "[FindReason][AnalyzerFile]analyzer file [%s] failed because [%s]", json_file_name_.c_str(), e.what()); + GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s],session_id [%lu], graph_id [%lu]", json_file_name_.c_str(), e.what(), session_id, graph_id); ret_failed = true; } json_file_.close(); @@ -241,7 +241,7 @@ ge::Status Analyzer::DoAnalyze(DataInfo &data_info) { GE_CHECK_NOTNULL(graph_info); auto status = SaveOpInfo(desc, data_info, graph_info); if (status != SUCCESS) { - GELOGE(status, "[Check][SaveOpInfo]save op info:pnode:%s desc:%s graph_info:%s failed!", pnode.cstr(), desc.cstr(), graph_info.cstr()); + GELOGE(status, "[Check][SaveOpInfo]save op info:desc_name [%s] desc_type [%s] failed!", desc->GetName().c_str(), desc->GetType().c_str()); return FAILED; } // create json file From 26e14a0fbd886ad895a497438418c89b5f459f91 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 20:24:03 +0800 Subject: [PATCH 04/11] log optimize --- ge/analyzer/analyzer.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index 60d32fd4..2d177dac 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -160,7 +160,7 @@ std::shared_ptr Analyzer::GetJsonObject(uint64_t session_id, uint64_t } else { auto iter1 = (iter->second).find(graph_id); if (iter1 == (iter->second).end()) { - GELOGE(PARAM_INVALID, "[Check][Graph_id]graph_id:%lu does not exist!session_id:%lu", graph_id, session_id); + GELOGE(PARAM_INVALID, "[Check][Graph_id]graph_id:%lu does not exist! session_id:%lu", graph_id, session_id); return nullptr; } GELOGI("GetJsonObject Success!session_id:%lu graph_id:%lu", session_id, graph_id); @@ -186,11 +186,11 @@ ge::Status Analyzer::CreateAnalyzerFile() { std::lock_guard lg(file_mutex_); int fd = open(json_file_name_.c_str(), O_WRONLY | O_CREAT | O_TRUNC, kFileAuthority); if (fd < 0) { - GELOGE(INTERNAL_ERROR, "[FileOpen][AnalyzerFile]Fail to open the file: %s.", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileOpen][AnalyzerFile]Fail to open the file [%s].", json_file_name_.c_str()); return INTERNAL_ERROR; } if (close(fd) != 0) { - GELOGE(INTERNAL_ERROR, "[FileClose][AnalyzerFile]Fail to close the file: %s.", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileClose][AnalyzerFile]Fail to close the file [%s].", json_file_name_.c_str()); return INTERNAL_ERROR; } is_json_file_create_ = true; @@ -211,7 +211,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ std::lock_guard lg(file_mutex_); json_file_.open(json_file_name_, std::ios::app); if (!json_file_.is_open()) { - GELOGE(FAILED, "[Check][AnalyzerFile]analyzer file does not exist[%s]", json_file_name_.c_str()); + GELOGE(FAILED, "[Check][AnalyzerFile]analyzer file does not exist [%s].", json_file_name_.c_str()); return PARAM_INVALID; } @@ -221,7 +221,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ try { json_file_ << jsn.dump(kJsonDumpLevel) << std::endl; } catch (nlohmann::detail::type_error &e) { - GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s],session_id [%lu], graph_id [%lu]", json_file_name_.c_str(), e.what(), session_id, graph_id); + GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s], session_id [%lu], graph_id [%lu].", json_file_name_.c_str(), e.what(), session_id, graph_id); ret_failed = true; } json_file_.close(); @@ -241,7 +241,7 @@ ge::Status Analyzer::DoAnalyze(DataInfo &data_info) { GE_CHECK_NOTNULL(graph_info); auto status = SaveOpInfo(desc, data_info, graph_info); if (status != SUCCESS) { - GELOGE(status, "[Check][SaveOpInfo]save op info:desc_name [%s] desc_type [%s] failed!", desc->GetName().c_str(), desc->GetType().c_str()); + GELOGE(status, "[Check][SaveOpInfo]save op info: desc_name [%s] desc_type [%s] failed!", desc->GetName().c_str(), desc->GetType().c_str()); return FAILED; } // create json file From 68302fc123f0d201c5e9cab3e52efe6a56a3559f Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 20:30:36 +0800 Subject: [PATCH 05/11] log optimize --- ge/analyzer/analyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index 2d177dac..f0b6365c 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -221,7 +221,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ try { json_file_ << jsn.dump(kJsonDumpLevel) << std::endl; } catch (nlohmann::detail::type_error &e) { - GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s], session_id [%lu], graph_id [%lu].", json_file_name_.c_str(), e.what(), session_id, graph_id); + GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s], session_id:%lu, graph_id:%lu.", json_file_name_.c_str(), e.what(), session_id, graph_id); ret_failed = true; } json_file_.close(); From ee16e7d626aa0aedc174c919435f16fcb28122ff Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 20:34:14 +0800 Subject: [PATCH 06/11] log optimize --- ge/model/ge_model.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/ge/model/ge_model.cc b/ge/model/ge_model.cc index 36c352a3..acaeff0d 100755 --- a/ge/model/ge_model.cc +++ b/ge/model/ge_model.cc @@ -19,7 +19,6 @@ #include "common/debug/log.h" #include "graph/debug/ge_attr_define.h" #include "graph/utils/attr_utils.h" -#include "imliyihan.h" namespace ge { void GeModel::Init() { From 443613af9a181f7356ed48077a1e7e73a3a59821 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Mon, 8 Mar 2021 21:04:37 +0800 Subject: [PATCH 07/11] log optimize --- ge/analyzer/analyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index f0b6365c..dcf828c7 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { // Initialize file string real_path = RealPath(kFilePath.c_str()); if (real_path.empty()) { - GELOGE(FAILED, "[Check][AnalyzerFilePath] File path:%s is invalid!", real_path.cstr()); + GELOGE(FAILED, "[Check][AnalyzerFilePath] File path:%s is invalid!", real_path.c_str()); return FAILED; } json_file_name_ = real_path + "/" + kAnalyzeFile; From 18fad2ef0042862bc93d764174b67c9498b6ea81 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 9 Mar 2021 14:14:47 +0800 Subject: [PATCH 08/11] log optimize --- ge/analyzer/analyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index dcf828c7..74fc0edc 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { // Initialize file string real_path = RealPath(kFilePath.c_str()); if (real_path.empty()) { - GELOGE(FAILED, "[Check][AnalyzerFilePath] File path:%s is invalid!", real_path.c_str()); + GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is invalid!"); return FAILED; } json_file_name_ = real_path + "/" + kAnalyzeFile; From 214c2a6d12239dc97fe1ffa7bd356d07f2040f4a Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 9 Mar 2021 15:16:15 +0800 Subject: [PATCH 09/11] log optimize --- ge/analyzer/analyzer.cc | 8 ++++---- ge/common/cust_aicpu_kernel_store.cc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index 74fc0edc..e2aadd7b 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { // Initialize file string real_path = RealPath(kFilePath.c_str()); if (real_path.empty()) { - GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is invalid!"); + GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is empty, path invalid!"); return FAILED; } json_file_name_ = real_path + "/" + kAnalyzeFile; @@ -200,7 +200,7 @@ ge::Status Analyzer::CreateAnalyzerFile() { } ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_id) { - GELOGD("start to save analyze file!"); + GELOGD("start to save analyzer file!"); auto graph_info = GetJsonObject(session_id, graph_id); GE_CHECK_NOTNULL(graph_info); @@ -229,7 +229,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ } ge::Status Analyzer::DoAnalyze(DataInfo &data_info) { - GELOGD("start to do analyzer!"); + GELOGD("start to do analyzer process!"); auto pnode = data_info.node_ptr; GE_CHECK_NOTNULL(pnode); @@ -314,4 +314,4 @@ void Analyzer::GraphInfoToJson(json& j, const GraphInfo &graph_info) { } j[kOp] = json_op_infos; } -} // namespace ge +} //namespace ge diff --git a/ge/common/cust_aicpu_kernel_store.cc b/ge/common/cust_aicpu_kernel_store.cc index 0bf4d819..e688711a 100755 --- a/ge/common/cust_aicpu_kernel_store.cc +++ b/ge/common/cust_aicpu_kernel_store.cc @@ -25,7 +25,7 @@ void CustAICPUKernelStore::AddCustAICPUKernel(const CustAICPUKernelPtr &kernel) } void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr &op_desc) const { - GELOGD("LoadCustAICPUKernelBinToOpDesc in"); + GELOGD("LoadCustAICPUKernelBinToOpDesc in."); if (op_desc != nullptr) { auto kernel_bin = FindKernel(op_desc->GetName()); if (kernel_bin != nullptr) { @@ -34,6 +34,6 @@ void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr< GELOGI("Load cust aicpu kernel:%s, %zu", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize()); } } - GELOGD("LoadCustAICPUKernelBinToOpDesc success"); + GELOGD("LoadCustAICPUKernelBinToOpDesc success."); } -} // namespace ge +} //namespace ge From ab01ece68c90ae6963342730fb098a5e7ec4bf9b Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 9 Mar 2021 16:20:45 +0800 Subject: [PATCH 10/11] log optimize --- ge/analyzer/analyzer.cc | 2 +- ge/common/cust_aicpu_kernel_store.cc | 4 ++-- ge/common/ge/op_tiling_manager.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index e2aadd7b..46ee7cda 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -314,4 +314,4 @@ void Analyzer::GraphInfoToJson(json& j, const GraphInfo &graph_info) { } j[kOp] = json_op_infos; } -} //namespace ge +} // namespace ge diff --git a/ge/common/cust_aicpu_kernel_store.cc b/ge/common/cust_aicpu_kernel_store.cc index e688711a..6d96eab4 100755 --- a/ge/common/cust_aicpu_kernel_store.cc +++ b/ge/common/cust_aicpu_kernel_store.cc @@ -31,9 +31,9 @@ void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr< if (kernel_bin != nullptr) { GE_IF_BOOL_EXEC(!op_desc->SetExtAttr(ge::OP_EXTATTR_CUSTAICPU_KERNEL, kernel_bin), GELOGW("LoadKernelCustAICPUBinToOpDesc: SetExtAttr for kernel_bin failed");) - GELOGI("Load cust aicpu kernel:%s, %zu", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize()); + GELOGI("Load cust aicpu kernel:%s, %zu.", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize()); } } GELOGD("LoadCustAICPUKernelBinToOpDesc success."); } -} //namespace ge +} // namespace ge diff --git a/ge/common/ge/op_tiling_manager.cc b/ge/common/ge/op_tiling_manager.cc index db959368..e374dcf4 100644 --- a/ge/common/ge/op_tiling_manager.cc +++ b/ge/common/ge/op_tiling_manager.cc @@ -33,7 +33,7 @@ void OpTilingManager::ClearHandles() noexcept { if (mmDlclose(handle.second) != 0) { const char *error = mmDlerror(); GE_IF_BOOL_EXEC(error == nullptr, error = ""); - GELOGE(FAILED, "Failed to close handle of %s: %s", handle.first.c_str(), error); + GELOGE(FAILED, "Failed to close handle of %s: %s.", handle.first.c_str(), error); } } handles_.clear(); From 48b6625cfb5ba6d29a369f7b0f700835b4bc1164 Mon Sep 17 00:00:00 2001 From: "liyihan2@huawei.com" Date: Tue, 9 Mar 2021 16:26:47 +0800 Subject: [PATCH 11/11] log optimize --- ge/analyzer/analyzer.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ge/analyzer/analyzer.cc b/ge/analyzer/analyzer.cc index 46ee7cda..50694ebe 100755 --- a/ge/analyzer/analyzer.cc +++ b/ge/analyzer/analyzer.cc @@ -103,7 +103,7 @@ ge::Status Analyzer::Initialize() { // Initialize file string real_path = RealPath(kFilePath.c_str()); if (real_path.empty()) { - GELOGE(FAILED, "[Check][AnalyzerFilePath] File path is empty, path invalid!"); + GELOGE(FAILED, "[Check][AnalyzeFilePath] File path is empty, path invalid!"); return FAILED; } json_file_name_ = real_path + "/" + kAnalyzeFile; @@ -186,11 +186,11 @@ ge::Status Analyzer::CreateAnalyzerFile() { std::lock_guard lg(file_mutex_); int fd = open(json_file_name_.c_str(), O_WRONLY | O_CREAT | O_TRUNC, kFileAuthority); if (fd < 0) { - GELOGE(INTERNAL_ERROR, "[FileOpen][AnalyzerFile]Fail to open the file [%s].", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileOpen][AnalyzeFile]Fail to open the analyze file [%s].", json_file_name_.c_str()); return INTERNAL_ERROR; } if (close(fd) != 0) { - GELOGE(INTERNAL_ERROR, "[FileClose][AnalyzerFile]Fail to close the file [%s].", json_file_name_.c_str()); + GELOGE(INTERNAL_ERROR, "[FileClose][AnalyzeFile]Fail to close the analyze file [%s].", json_file_name_.c_str()); return INTERNAL_ERROR; } is_json_file_create_ = true; @@ -211,7 +211,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ std::lock_guard lg(file_mutex_); json_file_.open(json_file_name_, std::ios::app); if (!json_file_.is_open()) { - GELOGE(FAILED, "[Check][AnalyzerFile]analyzer file does not exist [%s].", json_file_name_.c_str()); + GELOGE(FAILED, "[Check][AnalyzeFile]analyze file does not exist [%s].", json_file_name_.c_str()); return PARAM_INVALID; } @@ -221,7 +221,7 @@ ge::Status Analyzer::SaveAnalyzerDataToFile(uint64_t session_id, uint64_t graph_ try { json_file_ << jsn.dump(kJsonDumpLevel) << std::endl; } catch (nlohmann::detail::type_error &e) { - GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to file [%s] failed because [%s], session_id:%lu, graph_id:%lu.", json_file_name_.c_str(), e.what(), session_id, graph_id); + GELOGE(FAILED, "[Json.dump][GraphInfo]json.dump to analyze file [%s] failed because [%s], session_id:%lu, graph_id:%lu.", json_file_name_.c_str(), e.what(), session_id, graph_id); ret_failed = true; } json_file_.close();