Change the log level to Waring when the listener is empty

Signed-off-by: mayunteng <mayunteng@huawei.com>
This commit is contained in:
mayunteng 2022-12-29 09:29:56 +08:00
parent adc93fed0d
commit 5cb31a565f

View File

@ -58,7 +58,7 @@ int32_t CooperateEventManager::OnCooperateMessage(CooperationMessage msg, const
CALL_DEBUG_ENTER;
std::lock_guard<std::mutex> guard(lock_);
if (remoteCooperateCallbacks_.empty()) {
FI_HILOGW("No listener, send cooperate message failed");
FI_HILOGW("The current listener is empty, unable to invoke the listening interface");
return RET_ERR;
}
for (auto it = remoteCooperateCallbacks_.begin(); it != remoteCooperateCallbacks_.end(); ++it) {