From 9f1725a51e7c682fe50109351b231a175c180e3e Mon Sep 17 00:00:00 2001 From: jjfeing Date: Thu, 27 Aug 2020 17:22:19 +0800 Subject: [PATCH] fix data dump log info --- mindspore/ccsrc/debug/data_dump_parser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mindspore/ccsrc/debug/data_dump_parser.cc b/mindspore/ccsrc/debug/data_dump_parser.cc index 0f5845ea92d..4666ba20ba8 100644 --- a/mindspore/ccsrc/debug/data_dump_parser.cc +++ b/mindspore/ccsrc/debug/data_dump_parser.cc @@ -41,13 +41,13 @@ void DataDumpParser::ResetParam() { bool DataDumpParser::DumpEnabled() const { auto enable_dump = std::getenv(kEnableDataDump); if (enable_dump == nullptr) { - MS_LOG(INFO) << "[DataDump] enable dump is null. Please export ENABLE_DATA_DUMP"; + MS_LOG(INFO) << "[DataDump] enable dump is null. If you want to dump data, please export ENABLE_DATA_DUMP"; return false; } auto enabled = std::atoi(enable_dump); if (enabled != 1) { - MS_LOG(WARNING) << "[DataDump] Please export ENABLE_DATA_DUMP=1"; + MS_LOG(WARNING) << "[DataDump] If you want to dump data, please export ENABLE_DATA_DUMP=1"; return false; } @@ -62,7 +62,7 @@ bool DataDumpParser::DumpEnabled() const { std::optional DataDumpParser::GetDumpPath() const { auto dump_path = std::getenv(kDataDumpPath); if (dump_path == nullptr) { - MS_LOG(ERROR) << "[DataDump] dump path is null. Please export DATA_DUMP_PATH"; + MS_LOG(ERROR) << "[DataDump] dump path is null. If you want to dump data, please export DATA_DUMP_PATH"; return {}; } std::string dump_path_str(dump_path);