Skip to content

Commit d435604

Browse files
committed
feat(tele): collect hs_err_pid
1 parent 73c5eb3 commit d435604

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

desktop/src/cn/harryh/arkpets/utils/GuiPrefabs.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,10 @@ public static JFXDialog createErrorDialog(StackPane parent, Throwable e) {
557557
private static List<String> collectLogFiles(Long coreProcessId) {
558558
List<String> pathList = new ArrayList<>();
559559
pathList.add("%s.%d.log".formatted(Const.LogConfig.logDesktopPath, ProcessHandle.current().pid()));
560-
if (coreProcessId != null)
560+
if (coreProcessId != null) {
561561
pathList.add("%s.%d.log".formatted(Const.LogConfig.logCorePath, coreProcessId));
562+
pathList.add("hs_err_pid%d.log".formatted(coreProcessId));
563+
}
562564
pathList.removeIf(logFile -> Files.notExists(Path.of(logFile)));
563565
if (pathList.isEmpty()) {
564566
Logger.info("ErrorDialog", "No log file to collect");

0 commit comments

Comments
 (0)