diff --git a/services/samgr/native/source/collect/common_event_collect.cpp b/services/samgr/native/source/collect/common_event_collect.cpp index 17c15b55a412796a67f85535b7ca69dc418e97e6..3ab7f1bd3fb3e9aeaf8062b1cf83656bb20e3666 100644 --- a/services/samgr/native/source/collect/common_event_collect.cpp +++ b/services/samgr/native/source/collect/common_event_collect.cpp @@ -41,6 +41,7 @@ constexpr uint32_t UNSUB_DELAY_TIME = 10 * 1000; constexpr int64_t MAX_EXTRA_DATA_ID = 1000000000; constexpr int32_t COMMON_EVENT_SERVICE_ID = 3299; constexpr int32_t TRIGGER_THREAD_RECLAIM_DELAY_TIME = 130 * 1000; +constexpr int32_t MAX_CES_SECONDS = 10; constexpr const char* SCREEN_TRIGGER_THREAD_RECLAIM = "SCREEN_TRIGGER_THREAD_RECLAIM"; constexpr const char* CLEAR_TRIGGER_THREAD_RECLAIM = "CLEAR_TRIGGER_THREAD_RECLAIM"; constexpr const char* UID = "uid"; @@ -389,14 +390,14 @@ void CommonEventCollect::RemoveOnDemandReasonExtraData(int64_t extraDataId) std::lock_guard autoLock(extraDataLock_); extraDatas_.erase(extraDataId); } - HILOGD("CommonEventCollect remove extraData %{public}d", static_cast(extraDataId)); + HILOGI("CommonEventCollect remove extraData %{public}d", static_cast(extraDataId)); RemoveSaExtraDataId(extraDataId); } bool CommonEventCollect::GetOnDemandReasonExtraData(int64_t extraDataId, OnDemandReasonExtraData& extraData) { std::lock_guard autoLock(extraDataLock_); - HILOGD("CommonEventCollect get extraData %{public}d", static_cast(extraDataId)); + HILOGI("CommonEventCollect get extraData %{public}d", static_cast(extraDataId)); if (extraDatas_.count(extraDataId) == 0) { return false; } @@ -679,7 +680,7 @@ CommonEventSubscriber::CommonEventSubscriber(const EventFwk::CommonEventSubscrib void CommonEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData& data) { - SamgrXCollie samgrXCollie("samgr--OnReceiveEvent"); + SamgrXCollie samgrXCollie("samgr--OnReceiveEvent", MAX_CES_SECONDS); std::string action = data.GetWant().GetAction(); int32_t code = data.GetCode(); auto collect = collect_.promote();