From 9261428004543b941945bd380d16dbfcd87ccba6 Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Tue, 22 Feb 2022 21:23:34 -0800 Subject: [PATCH] Drop level of spammy log message (#22576) --- src/ray/core_worker/core_worker_process.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/ray/core_worker/core_worker_process.cc b/src/ray/core_worker/core_worker_process.cc index 09dbffd48..f78723de7 100644 --- a/src/ray/core_worker/core_worker_process.cc +++ b/src/ray/core_worker/core_worker_process.cc @@ -344,9 +344,16 @@ CoreWorker &CoreWorkerProcessImpl::GetCoreWorkerForCurrentThread() { // In this case, we should exit without crashing. // TODO (scv119): A better solution could be returning error code // and handling it at language frontend. - RAY_LOG(ERROR) << "The global worker has already been shutdown. This happens when " - "the language frontend accesses the Ray's worker after it is " - "shutdown. The process will exit"; + if (options_.worker_type == WorkerType::DRIVER) { + RAY_LOG(ERROR) + << "The global worker has already been shutdown. This happens when " + "the language frontend accesses the Ray's worker after it is " + "shutdown. The process will exit"; + } else { + RAY_LOG(INFO) << "The global worker has already been shutdown. This happens when " + "the language frontend accesses the Ray's worker after it is " + "shutdown. The process will exit"; + } QuickExit(); } RAY_CHECK(global_worker) << "global_worker_ must not be NULL";