IJPL-174027: more accurate logging

GitOrigin-RevId: 095dda3c4f916d8738880dfcf5d2ba0c51ad558b
This commit is contained in:
Andrei.Kuznetsov
2025-01-03 01:53:55 +00:00
committed by intellij-monorepo-bot
parent a7395066da
commit 625cf2d0c2
2 changed files with 3 additions and 1 deletions
@@ -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;
@@ -184,6 +184,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";
}
}