Skip to content

Commit 9261428

Browse files
authored
Drop level of spammy log message (ray-project#22576)
1 parent 40fa56f commit 9261428

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/ray/core_worker/core_worker_process.cc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,16 @@ CoreWorker &CoreWorkerProcessImpl::GetCoreWorkerForCurrentThread() {
344344
// In this case, we should exit without crashing.
345345
// TODO (scv119): A better solution could be returning error code
346346
// and handling it at language frontend.
347-
RAY_LOG(ERROR) << "The global worker has already been shutdown. This happens when "
348-
"the language frontend accesses the Ray's worker after it is "
349-
"shutdown. The process will exit";
347+
if (options_.worker_type == WorkerType::DRIVER) {
348+
RAY_LOG(ERROR)
349+
<< "The global worker has already been shutdown. This happens when "
350+
"the language frontend accesses the Ray's worker after it is "
351+
"shutdown. The process will exit";
352+
} else {
353+
RAY_LOG(INFO) << "The global worker has already been shutdown. This happens when "
354+
"the language frontend accesses the Ray's worker after it is "
355+
"shutdown. The process will exit";
356+
}
350357
QuickExit();
351358
}
352359
RAY_CHECK(global_worker) << "global_worker_ must not be NULL";

0 commit comments

Comments
 (0)