Skip to content

Commit 98cfb66

Browse files
committed
added logging and updated env var to use
1 parent 381a532 commit 98cfb66

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bundles/com.espressif.idf.core/src/com/espressif/idf/core/bug/BugReportGenerator.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ private File getEimLogPath()
101101
switch (Platform.getOS())
102102
{
103103
case Platform.OS_WIN32:
104-
eimPath = System.getenv("APPDATA"); //$NON-NLS-1$
104+
eimPath = System.getenv("LOCALAPPDATA"); //$NON-NLS-1$
105105
if (!StringUtil.isEmpty(eimPath))
106106
{
107-
eimPath = eimPath + "\\Local\\eim\\logs"; //$NON-NLS-1$
107+
eimPath = eimPath + "\\eim\\logs"; //$NON-NLS-1$
108108
}
109109
break;
110110
case Platform.OS_MACOSX:
@@ -290,7 +290,10 @@ public String generateBugReport()
290290
File eimLogPath = getEimLogPath();
291291
Logger.log("EIM log path: " + eimLogPath.getAbsolutePath()); //$NON-NLS-1$
292292
File eimLogDir = new File(bugReportDirectory.getAbsolutePath() + File.separator + "eim_logs"); //$NON-NLS-1$ )
293-
FileUtil.copyDirectory(eimLogPath, eimLogDir);
293+
IStatus status = FileUtil.copyDirectory(eimLogPath, eimLogDir);
294+
Logger.log("EIM log copy status-code: " + status.getCode()); //$NON-NLS-1$
295+
Logger.log("EIM log copy status-message: " + status.getMessage()); //$NON-NLS-1$
296+
294297

295298
// Zip the bug report directory
296299
FileUtil.zipDirectory(bugReportDirectory, bugReportDirectory.getAbsolutePath() + ".zip"); //$NON-NLS-1$

0 commit comments

Comments
 (0)