From 090002b0ce4dacd6d7ec7ab898c50ab4d3e20914 Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Wed, 30 Sep 2020 16:16:35 -0700 Subject: [PATCH] Blocking asyncio get warning should be logger.warn not logger.debug (#11141) --- python/ray/worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ray/worker.py b/python/ray/worker.py index 8adc0175a..2890aeb7c 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -1422,10 +1422,10 @@ def get(object_refs, *, timeout=None): "core_worker") and worker.core_worker.current_actor_is_asyncio(): global blocking_get_inside_async_warned if not blocking_get_inside_async_warned: - logger.debug("Using blocking ray.get inside async actor. " - "This blocks the event loop. Please use `await` " - "on object ref with asyncio.gather if you want to " - "yield execution to the event loop instead.") + logger.warning("Using blocking ray.get inside async actor. " + "This blocks the event loop. Please use `await` " + "on object ref with asyncio.gather if you want to " + "yield execution to the event loop instead.") blocking_get_inside_async_warned = True with profiling.profile("ray.get"):