Fix bug: Init RayLog before using it. (#2408)

This commit is contained in:
Wang Qing
2018-07-18 15:44:37 +08:00
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");