Skip to content

Commit

Permalink
improve UserStatUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Jan 2, 2024
1 parent 9ed0519 commit 175e752
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public static void setAgentId(String id) {
}

public static void arthasStart() {
if (statUrl == null) {
return;
}
RemoteJob job = new RemoteJob();
job.appendQueryData("ip", ip);
job.appendQueryData("version", version);
Expand All @@ -69,7 +72,7 @@ public static void arthasStart() {
}
}

public static void arthasUsage(String cmd, String detail) {
private static void arthasUsage(String cmd, String detail) {
RemoteJob job = new RemoteJob();
job.appendQueryData("ip", ip);
job.appendQueryData("version", version);
Expand All @@ -89,6 +92,9 @@ public static void arthasUsage(String cmd, String detail) {
}

public static void arthasUsageSuccess(String cmd, List<String> args) {
if (statUrl == null) {
return;
}
StringBuilder commandString = new StringBuilder(cmd);
for (String arg : args) {
commandString.append(" ").append(arg);
Expand Down

0 comments on commit 175e752

Please sign in to comment.