From a14cef63b11d0873a05c15e75f13e0edc97abf4d Mon Sep 17 00:00:00 2001 From: dongqingran Date: Fri, 24 Nov 2023 17:52:01 +0800 Subject: [PATCH] add debug log for unsubscribe Signed-off-by: dongqingran --- frameworks/core/src/common_event_listener.cpp | 3 ++- frameworks/native/src/common_event_subscribe_info.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/core/src/common_event_listener.cpp b/frameworks/core/src/common_event_listener.cpp index ae67009b..6316745a 100644 --- a/frameworks/core/src/common_event_listener.cpp +++ b/frameworks/core/src/common_event_listener.cpp @@ -158,7 +158,8 @@ void CommonEventListener::Stop() EVENT_LOGE("commonEventSubscriber_ == nullptr"); return; } - + EVENT_LOGI("event size: %{public}u", + (uint32_t)commonEventSubscriber_->GetSubscribeInfo().GetMatchingSkills().CountEntities()); if (CommonEventSubscribeInfo::HANDLER == commonEventSubscriber_->GetSubscribeInfo().GetThreadMode()) { EVENT_LOGD("stop listener in HANDLER mode"); return; diff --git a/frameworks/native/src/common_event_subscribe_info.cpp b/frameworks/native/src/common_event_subscribe_info.cpp index 4b29a024..96868937 100644 --- a/frameworks/native/src/common_event_subscribe_info.cpp +++ b/frameworks/native/src/common_event_subscribe_info.cpp @@ -46,7 +46,6 @@ CommonEventSubscribeInfo::CommonEventSubscribeInfo(const CommonEventSubscribeInf CommonEventSubscribeInfo::~CommonEventSubscribeInfo() { - EVENT_LOGI("~CommonEventSubscribeInfo"); } void CommonEventSubscribeInfo::SetPriority(const int32_t &priority) -- Gitee