mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-36884 Duplicate progress messages in logs, log whenever a skeleton is cleaned up
This will help to diagnose why some of the skeletons are absent in case something similar happens again. GitOrigin-RevId: 9f67aaeede13008773255fcd39ae69c042ca1eb1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ff1c89b288
commit
07054be059
@@ -204,6 +204,7 @@ public class PySkeletonRefresher {
|
||||
}
|
||||
|
||||
private void indicate(String msg) {
|
||||
LOG.debug("Progress message: " + msg);
|
||||
if (myIndicator != null) {
|
||||
myIndicator.checkCanceled();
|
||||
myIndicator.setText(msg);
|
||||
@@ -212,6 +213,7 @@ public class PySkeletonRefresher {
|
||||
}
|
||||
|
||||
private void indicateMinor(String msg) {
|
||||
LOG.debug("Progress message (minor): " + msg);
|
||||
if (myIndicator != null) {
|
||||
myIndicator.setText2(msg);
|
||||
}
|
||||
@@ -586,14 +588,16 @@ public class PySkeletonRefresher {
|
||||
continue;
|
||||
}
|
||||
final SkeletonHeader header = readSkeletonHeader(item);
|
||||
String binaryFile = null;
|
||||
boolean canLive = header != null;
|
||||
if (canLive) {
|
||||
final String binaryFile = header.getBinaryFile();
|
||||
binaryFile = header.getBinaryFile();
|
||||
canLive = SkeletonVersionChecker.PREGENERATED.equals(binaryFile) ||
|
||||
SkeletonVersionChecker.BUILTIN_NAME.equals(binaryFile) ||
|
||||
mySkeletonsGenerator.exists(binaryFile);
|
||||
}
|
||||
if (!canLive) {
|
||||
LOG.debug("Cleaning up skeleton " + item + (binaryFile != null ? " for non existing binary " + binaryFile : ""));
|
||||
mySkeletonsGenerator.deleteOrLog(item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user