mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
More throughout logging in PythonSdkUpdater
Add cause to the logged exception so that it's possible to see where exactly SDK updating process was launched which is impossible at the moment because of the nested backgroundable task and invokeLater().
This commit is contained in:
@@ -133,6 +133,7 @@ public class PythonSdkUpdater implements StartupActivity {
|
||||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("ThrowableInstanceNeverThrown") final Throwable methodCallStacktrace = new Throwable();
|
||||
application.invokeLater(() -> {
|
||||
synchronized (ourLock) {
|
||||
if (!ourScheduledToRefresh.contains(homePath)) {
|
||||
@@ -165,6 +166,7 @@ public class PythonSdkUpdater implements StartupActivity {
|
||||
PyPackageManager.getInstance(sdk12).refreshAndGetPackages(true);
|
||||
}
|
||||
catch (ExecutionException e) {
|
||||
e.initCause(methodCallStacktrace);
|
||||
LOG.warn(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user