Skip to content

Commit

Permalink
log post
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 15, 2024
1 parent 5ecf5b4 commit 260c39f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/opendota/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public void run()
ip = RegisterTask.shellExec("hostname -i");
}
int nproc = Runtime.getRuntime().availableProcessors();
RegisterTask.shellExec("curl -X POST -L" + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc);
String postCmd = "curl -X POST -L" + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc;
System.err.println(postCmd);
RegisterTask.shellExec(postCmd);
} catch (Exception e) {
System.err.println(e);
}
Expand Down

0 comments on commit 260c39f

Please sign in to comment.