From: Yann Cebron Date: Mon, 15 Feb 2010 10:33:31 +0000 (+0300) Subject: IDEA-52256 X-Git-Tag: review-1~11^2~6 X-Git-Url: https://repo.or.cz/w/fedora-idea.git/commitdiff_plain/1a1e8e0d077469770c73fb26bc47d89bef650dcc IDEA-52256 --- 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); } }); - } + } } }); }