diff --git a/src/unix/linux.c b/src/unix/linux.c index dcf07d4274eaffba81a8bc89ee865e7fa2bd1822..d3fe09f016453a82bee667b0a3f7c9cabe6d16fe 100644 --- a/src/unix/linux.c +++ b/src/unix/linux.c @@ -1549,7 +1549,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; }