do not pollute logs in tests

GitOrigin-RevId: 160e84b98c69aec7d17743a99ea69dde082ad665
This commit is contained in:
Dmitry Batkovich
2020-05-09 05:25:10 +00:00
committed by intellij-monorepo-bot
parent 771dfe3f0d
commit ab5e1e1fea
@@ -295,7 +295,13 @@ public class ProjectRootManagerComponent extends ProjectRootManagerImpl implemen
private void synchronizeRoots() {
if (!myStartupActivityPerformed) return;
myRootsChangedLogger.info("project roots have changed", new Throwable());
String message = "project roots have changed";
if (ApplicationManager.getApplication().isUnitTestMode()) {
LOG.info(message);
}
else {
myRootsChangedLogger.info(message, new Throwable());
}
DumbServiceImpl dumbService = DumbServiceImpl.getInstance(myProject);
if (FileBasedIndex.getInstance() instanceof FileBasedIndexImpl) {