mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:22:39 +08:00
Fix bug: Init RayLog before using it. (#2408)
This commit is contained in:
committed by
Robert Nishihara
parent
f31a6ca965
commit
344e3d2c05
@@ -71,6 +71,9 @@ public class RayCli {
|
||||
PathConfig paths = new PathConfig(config);
|
||||
RayParameters params = new RayParameters(config);
|
||||
|
||||
// Init RayLog before using it.
|
||||
RayLog.init(params.working_directory);
|
||||
|
||||
RayLog.core.info("Using IP address " + params.node_ip_address + " for this node.");
|
||||
RunManager manager;
|
||||
if (cmdStart.head) {
|
||||
@@ -165,6 +168,10 @@ public class RayCli {
|
||||
// .getInstance().getRemoteFunctionManager();
|
||||
|
||||
UniqueID resourceId = functionManager.registerResource(zip);
|
||||
|
||||
// Init RayLog before using it.
|
||||
RayLog.init(params.working_directory);
|
||||
|
||||
RayLog.rapp.debug(
|
||||
"registerResource " + resourceId + " for package " + packageName + " done");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user