Drop level of spammy log message (#22576)

This commit is contained in:
Eric Liang 2022-02-22 21:23:34 -08:00 committed by GitHub
parent 40fa56f40c
commit 9261428004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";