From 8767fa6e3e576df26add281b3e3f1cefffca4988 Mon Sep 17 00:00:00 2001 From: dongqingran Date: Mon, 4 Mar 2024 22:42:02 +0800 Subject: [PATCH] replace log limit debug Signed-off-by: dongqingran --- frameworks/eventhandler/src/event_queue.cpp | 8 ++++---- frameworks/eventhandler/src/event_runner.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/eventhandler/src/event_queue.cpp b/frameworks/eventhandler/src/event_queue.cpp index 2ce482c..1e558f5 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 3e2057f..39e1362 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()); } -- Gitee