Browse Source

!8978 Make unexpected/network error log at warning level

From: @jkl_lee
Reviewed-by: @mikef,@nsyca
Signed-off-by: @nsyca
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
c53d4aafa3
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