diff --git a/src/unix/linux.c b/src/unix/linux.c index 75148764c61afa213cf36a3f97ccda686eed9b56..ab94fe282813b61830d3d309bc20949d36752534 100644 --- a/src/unix/linux.c +++ b/src/unix/linux.c @@ -1546,7 +1546,11 @@ void uv__io_poll(uv_loop_t* loop, int timeout) { * Ignore all errors because we may be racing with another thread * when the file descriptor is closed. */ - UV_LOGF("fd %{public}d don't belong to loop %{public}zu", fd, (size_t)loop); +#ifdef USE_FFRT + if (ffrt_get_cur_task() != NULL) { + UV_LOGF("fd %{public}d don't belong to loop %{public}zu", fd, (size_t)loop); + } +#endif uv__epoll_ctl_prep(epollfd, ctl, &prep, EPOLL_CTL_DEL, fd, pe); continue; }