Browse Source

!15370 mindrt log bug

From: @ling_qiao_min
Reviewed-by: @zhanghaibo5,@hangangqiang,@hangangqiang,@zhang_xue_tong
Signed-off-by: @zhang_xue_tong
pull/15370/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
645d38889d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/core/mindrt/src/actor/actor.cc
  2. +1
    -1
      mindspore/core/mindrt/src/actor/aid.cc

+ 1
- 1
mindspore/core/mindrt/src/actor/actor.cc View File

@@ -133,7 +133,7 @@ int ActorBase::Send(const AID &to, std::string &&name, std::string &&strMsg, boo
// register the message handle
void ActorBase::Receive(const std::string &msgName, ActorFunction &&func) {
if (actionFunctions.find(msgName) != actionFunctions.end()) {
MS_LOG(ERROR) << "ACTOR function's name conflicts, a=%s" << id.Name().c_str() << ",f=%s" << msgName.c_str();
MS_LOG(ERROR) << "ACTOR function's name conflicts, a=" << id.Name().c_str() << ",f=" << msgName.c_str();
BUS_EXIT("function's name conflicts");
return;
}


+ 1
- 1
mindspore/core/mindrt/src/actor/aid.cc View File

@@ -111,7 +111,7 @@ std::string AID::GetIp() const {
}
size_t index2 = url.rfind(':');
if ((index2 == std::string::npos) || (index2 < index1)) {
MS_LOG(INFO) << "wrong url:%s,u=" << url.c_str();
MS_LOG(DEBUG) << "wrong url:" << url.c_str();
return url;
} else {
return url.substr(index1, index2 - index1);


Loading…
Cancel
Save