javac ast indices: remove some unuseful logging

This commit is contained in:
Dmitry Batkovich
2017-05-10 14:18:44 +03:00
parent a874cb4416
commit 0ae2783e76
@@ -75,8 +75,6 @@ public class CompilerBackwardReferenceIndex {
if (versionDiffers(buildDir)) {
saveVersion(buildDir);
}
if (myReadOnly) logModification("open");
myFilePathEnumerator = new PersistentStringEnumerator(new File(myIndicesDir, FILE_ENUM_TAB)) {
@Override
public int enumerate(String value) throws IOException {
@@ -126,7 +124,6 @@ public class CompilerBackwardReferenceIndex {
for (InvertedIndex<?, ?, CompiledFileData> index : myIndices.values()) {
close(index, exceptionProc);
}
if (myReadOnly) logModification("close");
final Exception exception = exceptionProc.getFoundValue();
if (exception != null) {
removeIndexFiles(myIndicesDir);
@@ -209,20 +206,6 @@ public class CompilerBackwardReferenceIndex {
myRebuildRequestCause = e;
}
private void logModification(String state) {
try {
File[] files = myIndicesDir.listFiles();
if (files != null) {
LOG.info("indices state on " +
state +
": " +
Arrays.stream(files).map(f -> f.getName() + ":" + f.lastModified()).collect(Collectors.joining(", ")));
}
}
catch (Exception ignored) {
}
}
private static void close(InvertedIndex<?, ?, CompiledFileData> index, CommonProcessors.FindFirstProcessor<Exception> exceptionProcessor) {
try {
index.dispose();