diff --git a/frameworks/eventhandler/src/event_queue.cpp b/frameworks/eventhandler/src/event_queue.cpp index 2ce482c84a88fbbc865fcf8d5f56e7988a2412bc..1e558f5471c0b8a2a8231ea4746646df5b8f0522 100644 --- a/frameworks/eventhandler/src/event_queue.cpp +++ b/frameworks/eventhandler/src/event_queue.cpp @@ -102,14 +102,14 @@ inline InnerEvent::Pointer PopFrontEventFromListLocked(std::list()), historyEvents_( std::vector(HISTORY_EVENT_NUM_POWER)) { - HILOGD("enter"); + EH_LOGD_LIMIT("enter"); } EventQueue::EventQueue(const std::shared_ptr &ioWaiter) : ioWaiter_(ioWaiter ? ioWaiter : std::make_shared()), historyEvents_( std::vector(HISTORY_EVENT_NUM_POWER)) { - HILOGD("enter"); + EH_LOGD_LIMIT("enter"); if (ioWaiter_->SupportListeningFileDescriptor()) { // Set callback to handle events from file descriptors. ioWaiter_->SetFileDescriptorEventCallback( @@ -530,7 +530,7 @@ void EventQueue::RemoveFileDescriptorListener(int32_t fileDescriptor) void EventQueue::Prepare() { - HILOGD("enter"); + EH_LOGD_LIMIT("enter"); std::lock_guard lock(queueLock_); if (!usable_.load()) { HILOGW("EventQueue is unavailable."); @@ -541,7 +541,7 @@ void EventQueue::Prepare() void EventQueue::Finish() { - HILOGD("enter"); + EH_LOGD_LIMIT("enter"); std::lock_guard lock(queueLock_); if (!usable_.load()) { HILOGW("EventQueue is unavailable."); diff --git a/frameworks/eventhandler/src/event_runner.cpp b/frameworks/eventhandler/src/event_runner.cpp index 3e2057fa24e8be3227cede58c05a11ae353ed4e6..39e1362a6104aa6f7f3d3c39a695afee17af2350 100644 --- a/frameworks/eventhandler/src/event_runner.cpp +++ b/frameworks/eventhandler/src/event_runner.cpp @@ -494,7 +494,7 @@ std::shared_ptr EventRunner::Create(bool inNewThread) { HILOGD("inNewThread is %{public}d", inNewThread); if (inNewThread) { - HILOGI("EventRunner created"); + EH_LOGI_LIMIT("EventRunner created"); return Create(std::string()); }