mirror of
https://gitee.com/openharmony/msdp_device_status
synced 2024-11-27 09:41:43 +00:00
日志超限整改
Signed-off-by: yang123 <yangyanling13@huawei.com>
This commit is contained in:
parent
e3ab782fdd
commit
ef20b019f0
@ -235,6 +235,10 @@ void EventManager::OnClientDied(const ClientDiedEvent &event)
|
||||
void EventManager::NotifyCooperateMessage(const CooperateNotice ¬ice)
|
||||
{
|
||||
auto session = env_->GetSocketSessionManager().FindSessionByPid(notice.pid);
|
||||
if (session == nullptr) {
|
||||
FI_HILOGD("session is null");
|
||||
return;
|
||||
}
|
||||
CHKPV(session);
|
||||
NetPacket pkt(notice.msgId);
|
||||
pkt << notice.userData << notice.networkId << static_cast<int32_t>(notice.msg) << notice.errCode;
|
||||
|
@ -48,7 +48,7 @@ using TimeStamp = std::chrono::high_resolution_clock::time_point;
|
||||
#define CHKPV(cond) \
|
||||
do { \
|
||||
if ((cond) == nullptr) { \
|
||||
FI_HILOGD("CHKPV(%{public}s) is null", #cond); \
|
||||
FI_HILOGE("CHKPV(%{public}s) is null", #cond); \
|
||||
return; \
|
||||
} \
|
||||
} while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user