diff --git a/src/ray/raylet/local_scheduler_client.cc b/src/ray/raylet/local_scheduler_client.cc index 1f481a79e..ec9434cbc 100644 --- a/src/ray/raylet/local_scheduler_client.cc +++ b/src/ray/raylet/local_scheduler_client.cc @@ -67,8 +67,10 @@ int connect_ipc_sock_retry(const char *socket_pathname, int num_retries, if (fd >= 0) { break; } - if (num_attempts == 0) { - RAY_LOG(ERROR) << "Connection to socket failed for pathname " << socket_pathname; + if (num_attempts > 0) { + RAY_LOG(ERROR) << "Retrying to connect to socket for pathname " << socket_pathname + << " (num_attempts = " << num_attempts + << ", num_retries = " << num_retries << ")"; } /* Sleep for timeout milliseconds. */ usleep(timeout * 1000);