diff --git a/base/src/event_demultiplexer.cpp b/base/src/event_demultiplexer.cpp index ae5b25494ca2b5c58d7a78c2ddcf118758ad27c3..68c51908fea5476d602f78d5f22c6238b3b95457 100644 --- a/base/src/event_demultiplexer.cpp +++ b/base/src/event_demultiplexer.cpp @@ -128,6 +128,8 @@ void EventDemultiplexer::Polling(int timeout /* ms */) if (itor != eventHandlers_.end()) { taskQue.emplace_back(itor->second); eventQue.emplace_back(events); + } else { + UTILS_LOGE("fd not found in eventHandlers_, fd=%{public}d", targetFd); } } } diff --git a/base/src/timer_event_handler.cpp b/base/src/timer_event_handler.cpp index aa603ed50e7add9c4b8991a0500add6e29e79a6e..0550661ea6ebaba8371789b3d3e35ae32416b63d 100644 --- a/base/src/timer_event_handler.cpp +++ b/base/src/timer_event_handler.cpp @@ -99,7 +99,8 @@ void TimerEventHandler::TimeOut() uint64_t expirations = 0; ssize_t n = ::read(GetHandle(), &expirations, sizeof(expirations)); if (n != sizeof(expirations)) { - UTILS_LOGE("epoll_loop::on_timer() reads %{public}d bytes instead of 8.", static_cast(n)); + UTILS_LOGE("epoll_loop::on_timer() reads %{public}d bytes instead of 8, errno=%{public}d", static_cast(n), + errno); } if (callback_) { callback_(GetHandle());