Browse Source

Set unexpected/network error to WARNING log level

tags/v1.1.0
Jesse Lee 5 years ago
parent
commit
779a19d5de
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mindspore/ccsrc/minddata/dataset/util/status.cc

+ 5
- 1
mindspore/ccsrc/minddata/dataset/util/status.cc View File

@@ -114,7 +114,11 @@ Status::Status(const StatusCode code, int line_of_code, const char *file_name, c
ss << "File : " << file_name << "\n";
}
err_msg_ = ss.str();
MS_LOG(INFO) << err_msg_;
if (code == StatusCode::kUnexpectedError || code == StatusCode::kNetWorkError) {
MS_LOG(WARNING) << err_msg_;
} else {
MS_LOG(INFO) << err_msg_;
}
}

std::ostream &operator<<(std::ostream &os, const Status &s) {


Loading…
Cancel
Save