From bde065aafd80148f80d7e62e74ac1509396f9b8d Mon Sep 17 00:00:00 2001 From: wujianlin Date: Tue, 24 Sep 2024 20:22:49 +0800 Subject: [PATCH] Adding log information when the interface returns an exception Issue:https://gitee.com/openharmony/commonlibrary_c_utils/issues/IATE6R?from=project-issue Signed-off-by: wujianlin --- base/src/event_demultiplexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/event_demultiplexer.cpp b/base/src/event_demultiplexer.cpp index 68c5190..15f25e0 100644 --- a/base/src/event_demultiplexer.cpp +++ b/base/src/event_demultiplexer.cpp @@ -113,7 +113,8 @@ void EventDemultiplexer::Polling(int timeout /* ms */) } if (nfds == -1) { if (errno != INTERRUPTED_SYS_CALL) { - UTILS_LOGE("epoll_wait failed, errno %{public}d", errno); + UTILS_LOGE("epoll_wait failed, errno %{public}d, epollFd_: %{public}d, pollEvents.size: %{public}zu", + errno, epollFd_, epollEvents.size()); } return; } -- Gitee