Browse Source

!13048 fix rdr log when env_config_path is empty

From: @luopengting
Reviewed-by: @ouwenchang,@yelihua
Signed-off-by: @yelihua
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
38da5f5536
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/ccsrc/debug/env_config_parser.cc
  2. +1
    -1
      mindspore/ccsrc/debug/rdr/recorder_manager.cc

+ 1
- 1
mindspore/ccsrc/debug/env_config_parser.cc View File

@@ -66,7 +66,7 @@ void EnvConfigParser::Parse() {
MS_EXCEPTION_IF_NULL(context);
auto config_file = context->get_param<std::string>(MS_CTX_ENV_CONFIG_PATH);
if (config_file.empty()) {
MS_LOG(INFO) << "Get env config file failed. Please check the 'env_config_path' set in context.";
MS_LOG(INFO) << "The 'env_config_path' in 'mindspore.context.set_context(env_config_path={path})' is empty.";
return;
}
config_file_ = config_file;


+ 1
- 1
mindspore/ccsrc/debug/rdr/recorder_manager.cc View File

@@ -48,7 +48,7 @@ bool RecorderManager::RecordObject(const BaseRecorderPtr &recorder) {
}

if (recorder == nullptr) {
MS_LOG(ERROR) << "register recorder module with nullptr.";
MS_LOG(ERROR) << "Register recorder module with nullptr.";
return false;
}
std::string module = recorder->GetModule();


Loading…
Cancel
Save