forked from mindspore-Ecosystem/mindspore
fix changefilemod print
This commit is contained in:
parent
363a232cbc
commit
f9c3023e94
|
@ -287,7 +287,7 @@ const std::set<TypeId> kFloatDataTypeSet = {kNumberTypeFloat16, kNumberTypeFloat
|
||||||
static inline void ChangeFileMode(const std::string &file_name, mode_t mode) {
|
static inline void ChangeFileMode(const std::string &file_name, mode_t mode) {
|
||||||
try {
|
try {
|
||||||
if (chmod(file_name.c_str(), mode) != 0) {
|
if (chmod(file_name.c_str(), mode) != 0) {
|
||||||
MS_LOG(WARNING) << "Change file `" << file_name << "` to mode " << std::oct << mode << " fail.";
|
MS_LOG(DEBUG) << "Change file `" << file_name << "` to mode " << std::oct << mode << " fail.";
|
||||||
}
|
}
|
||||||
} catch (std::exception &e) {
|
} catch (std::exception &e) {
|
||||||
MS_LOG(DEBUG) << "File `" << file_name << "` change mode failed! May be not exist.";
|
MS_LOG(DEBUG) << "File `" << file_name << "` change mode failed! May be not exist.";
|
||||||
|
|
Loading…
Reference in New Issue