IJPL-174027: more accurate logging

(cherry picked from commit 095dda3c4f916d8738880dfcf5d2ba0c51ad558b)

IJ-CR-152316

GitOrigin-RevId: 06f03a4a514385f18c33fbb96f885f20263ca9b0
This commit is contained in:
Andrei.Kuznetsov
2024-12-25 01:25:07 +01:00
committed by intellij-monorepo-bot
parent 72bbf8c3bd
commit 7bec186e06
2 changed files with 3 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ final class StubCumulativeInputDiffBuilder extends DirectInputDataDiffBuilder<In
LOG.info((dryRun ? "[dry run]" : "") + "equal trees: inputId=" + myInputId +
",myTreeLen=" + myCurrentTree.myTreeByteLength +
",myStubLen=" + myCurrentTree.myIndexedStubByteLength +
",newTreeLen=" + newSerializedStubTree.myIndexedStubByteLength +
",newTreeLen=" + newSerializedStubTree.myTreeByteLength +
",newStubLen=" + newSerializedStubTree.myIndexedStubByteLength);
}
return false;

View File

@@ -183,6 +183,8 @@ final class StubTreeLoaderImpl extends StubTreeLoader {
message += " (this)";
}
message += " shouldBeIndexed=" + IndexableFilesIndex.getInstance(project).shouldBeIndexed(vFile);
// Should return the same as above. Why do we need two different API?
message += " shouldBeIndexed2=" + ((FileBasedIndexImpl)FileBasedIndex.getInstance()).belongsToProjectIndexableFiles(vFile, project);
message += "\n";
}
}