add logging to debug project opening issues

GitOrigin-RevId: c787e8eead7c5ef4b6d5d325eafd938f93cd2a2f
This commit is contained in:
Vladimir Krivosheev
2020-06-08 19:12:56 +03:00
committed by intellij-monorepo-bot
parent 3cbfff9f7b
commit f1d27ba373
@@ -82,6 +82,10 @@ open class ProjectManagerExImpl : ProjectManagerImpl() {
}
private fun doOpenProject(projectStoreBaseDir: Path, options: OpenProjectTask, projectManager: ProjectManagerExImpl): Project? {
if (ProjectManagerImpl.LOG.isDebugEnabled && !ApplicationManager.getApplication().isUnitTestMode) {
ProjectManagerImpl.LOG.debug("open project: ${options}", RuntimeException())
}
if (options.project != null && projectManager.isProjectOpened(options.project)) {
return null
}