forked from huawei/mindspore2022
fix rdr log when env_config_path is empty
This commit is contained in:
parent
2551332cb9
commit
027edbb679
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue