diff --git a/src/unix/core.c b/src/unix/core.c index 1a2eb5a3172089d1f08dd2e03c1fa0cdae9ed11b..de2ba196731104ee0212c6cf489cb732a10bed68 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -444,6 +444,8 @@ int uv_run(uv_loop_t* loop, uv_run_mode mode) { if (!r) uv__update_time(loop); + UV_LOGI("start to run loop %{public}zu", (size_t)loop); + while (r != 0 && loop->stop_flag == 0) { #ifdef USE_FFRT if (!is_uv_loop_good_magic(loop)) { @@ -509,6 +511,7 @@ int uv_run(uv_loop_t* loop, uv_run_mode mode) { if (loop->stop_flag != 0) loop->stop_flag = 0; + UV_LOGI("loop %{public}zu stopped", (size_t)loop); return r; }