Skip to content

Commit c74b797

Browse files
committed
fix(logging): added logging support
1 parent dbd74f9 commit c74b797

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public boolean isEimGuiCapable(String eimPath)
273273
try
274274
{
275275
ProcessBuilder pb = new ProcessBuilder(eimPath, "gui", "--help"); //$NON-NLS-1$ //$NON-NLS-2$
276+
Logger.log("Checking if EIM supports GUI mode with command: " + String.join(" ", pb.command())); //$NON-NLS-1$ //$NON-NLS-2$
276277
pb.redirectErrorStream(true);
277278
Process process = pb.start();
278279
boolean finished = process.waitFor(5, TimeUnit.SECONDS);

bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/tools/EimGuiOrCliLauncher.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ public static void launch(ToolInitializer toolInitializer, EimLoader eimLoader,
3636
{
3737
if (toolInitializer.isEimGuiCapable(eimPath))
3838
{
39+
Logger.log("EIM binary supports GUI mode, launching GUI"); //$NON-NLS-1$
3940
LaunchResult launchResult = eimLoader.launchEimWithResult(eimPath, "gui"); //$NON-NLS-1$
4041
eimLoader.waitForEimClosure(launchResult, afterEimClosed);
4142
return;
4243
}
43-
44+
45+
Logger.log("EIM binary does not support GUI mode, launching CLI terminal"); //$NON-NLS-1$
4446
EimJsonWatchService.getInstance().pauseListeners();
4547
display.syncExec(() -> {
4648
try

0 commit comments

Comments
 (0)