From 1a1e8e0d077469770c73fb26bc47d89bef650dcc Mon Sep 17 00:00:00 2001 From: Yann Cebron Date: Mon, 15 Feb 2010 13:33:31 +0300 Subject: [PATCH] IDEA-52256 --- .../src/com/intellij/diagnostic/SubmitPerformanceReportAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/diagnostic/SubmitPerformanceReportAction.java b/platform/platform-impl/src/com/intellij/diagnostic/SubmitPerformanceReportAction.java index 7b7f1205a8..33f1593af2 100644 --- a/platform/platform-impl/src/com/intellij/diagnostic/SubmitPerformanceReportAction.java +++ b/platform/platform-impl/src/com/intellij/diagnostic/SubmitPerformanceReportAction.java @@ -54,7 +54,7 @@ public class SubmitPerformanceReportAction extends AnAction implements DumbAware String reportFileName = "perf_" + ApplicationInfo.getInstance().getBuild().asString() + "_" + SystemProperties.getUserName() + "_" + myDateFormat.format(new Date()) + ".zip"; final File reportPath = new File(SystemProperties.getUserHome(), reportFileName); - final File logDir = new File(PathManager.getSystemPath(), "log"); + final File logDir = new File(PathManager.getLogPath()); final Project project = e.getData(PlatformDataKeys.PROJECT); final boolean[] archiveCreated = new boolean[1]; @@ -65,7 +65,7 @@ public class SubmitPerformanceReportAction extends AnAction implements DumbAware ZipUtil.addDirToZipRecursively(zip, reportPath, logDir, "", new FileFilter() { public boolean accept(final File pathname) { ProgressManager.checkCanceled(); - + if (logDir.equals(pathname.getParentFile())) { return pathname.getPath().contains("threadDumps"); } @@ -103,7 +103,7 @@ public class SubmitPerformanceReportAction extends AnAction implements DumbAware Messages.showErrorDialog(error, MESSAGE_TITLE); } }); - } + } } }); } -- 2.11.4.GIT