fix rdr log when env_config_path is empty

This commit is contained in:
luopengting 2021-03-09 17:26:09 +08:00
parent 2551332cb9
commit 027edbb679
2 changed files with 2 additions and 2 deletions

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;

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();