diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index da29cbabc5..ee63f08a6b 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -785,7 +785,10 @@ std::vector Debugger::CheckOpOverflow() { MS_LOG(INFO) << "OverFlow bin directory does not exist!"; } closedir(d); - MS_LOG(ERROR) << "These operation overflows are detected " << op_names; + + if (op_names.size()) { + MS_LOG(ERROR) << "These operation overflows are detected " << op_names; + } for (auto &i : bin_list) { if (i > last_overflow_bin_) {