|
@@ -124,12 +124,10 @@ public class TraceDaemon extends Thread{
|
|
|
}
|
|
|
}
|
|
|
try {
|
|
|
- if ("BugReport".equals(reportType)) {
|
|
|
- PrintUtil.print(String.format("Generate bug report by %s's docker", reportType), TAG);
|
|
|
- String command = String.format("java -jar tasks/%s.jar %s", reportType, traceId);
|
|
|
- String result = OsUtil.runCommand(command);
|
|
|
- PrintUtil.print(result, TAG);
|
|
|
- }
|
|
|
+ PrintUtil.print(String.format("Generate bug report by %s's docker", reportType), TAG);
|
|
|
+ String command = String.format("java -jar tasks/%s.jar %s", reportType, traceId);
|
|
|
+ String result = OsUtil.runCommand(command);
|
|
|
+ PrintUtil.print(result, TAG);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -153,7 +151,6 @@ public class TraceDaemon extends Thread{
|
|
|
if (path != null){
|
|
|
PrintUtil.print(String.format("Trace %s's data upload success.", traceId), TAG);
|
|
|
}else {
|
|
|
- traceService.updateTraceStatue(traceId, TraceStatus.GEN_REPORT_FAILED);
|
|
|
PrintUtil.print(String.format("Trace %s's data upload failed after tried 5 times.", traceId), TAG);
|
|
|
}
|
|
|
}
|