Skip to content

Commit 62e2d16

Browse files
committed
Don't send the ping if multiple files are uploaded
1 parent 5d2a8ea commit 62e2d16

File tree

1 file changed

+4
-2
lines changed
  • dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling

1 file changed

+4
-2
lines changed

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentCLI.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ public static void uploadCrash(final String configFile, final String... files) t
107107
}
108108

109109
final CrashUploader crashUploader = new CrashUploader(storedConfig);
110-
// send the crash ping
111-
crashUploader.notifyCrashStarted(error);
110+
// send the crash ping if only at most one file is sent
111+
if (files.length <= 1) {
112+
crashUploader.notifyCrashStarted(error);
113+
}
112114

113115
if (error != null) {
114116
System.exit(1);

0 commit comments

Comments
 (0)