vcs: log amount of mapped roots for <Project> mappings

GitOrigin-RevId: 6c896994aa0ac7c9dabb2b3beefd3caf659043e7
This commit is contained in:
Aleksey Pivovarov
2019-08-12 16:06:12 +03:00
committed by intellij-monorepo-bot
parent 3420fcb266
commit 6b7d0bc427
@@ -191,9 +191,7 @@ public class NewMappings implements Disposable {
myMappedRoots = newMappedRoots.mappedRoots;
myFilePointerDisposable = newMappedRoots.filePointerDisposable;
if (LOG.isDebugEnabled()) {
dumpMappedRootsToLog();
}
dumpMappedRootsToLog();
}
if (fireMappingsChangedEvent) mappingsChanged();
@@ -376,8 +374,13 @@ public class NewMappings implements Disposable {
}
private void dumpMappedRootsToLog() {
for (MappedRoot root : myMappedRoots) {
LOG.info(String.format("Mapped Root: [%s] - [%s]", root.vcs, root.rootPath));
if (LOG.isDebugEnabled()) {
for (MappedRoot root : myMappedRoots) {
LOG.debug(String.format("Mapped Root: [%s] - [%s]", root.vcs, root.rootPath));
}
}
else if (haveDefaultMapping() != null) {
LOG.info("Mapped Roots: " + myMappedRoots.size());
}
}