remove spam from console

GitOrigin-RevId: f55627ad30911624edbad0b43cd8c1d423bfa87e
This commit is contained in:
Alexey Kudravtsev
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 20f1384638
commit 590251e43f
2 changed files with 9 additions and 3 deletions
@@ -195,8 +195,8 @@ public abstract class ProjectWizardTestCase<T extends AbstractProjectWizard> ext
addSdk(new SimpleJavaSdkType().createJdk(DEFAULT_SDK, SystemProperties.getJavaHome()));
addSdk(new SimpleJavaSdkType().createJdk("_other", SystemProperties.getJavaHome()));
System.out.println("ProjectWizardTestCase.configureJdk:");
System.out.println(Arrays.asList(ProjectJdkTable.getInstance().getAllJdks()));
LOG.debug("ProjectWizardTestCase.configureJdk:");
LOG.debug(String.valueOf(Arrays.asList(ProjectJdkTable.getInstance().getAllJdks())));
});
}
@@ -49,6 +49,7 @@ import java.util.*
fun String.toReadable() = replace(" ", "<Space>").replace("\n", "<Enter>").replace("\t", "<Tab>")
class RetypeLog {
val LOG = Logger.getInstance(RetypeLog::class.java)
private val log = arrayListOf<String>()
private var currentTyping: String? = null
private var currentCompletion: String? = null
@@ -101,7 +102,12 @@ class RetypeLog {
fun printToStdout() {
for (s in log) {
println(s)
if (ApplicationManager.getApplication().isUnitTestMode) {
LOG.debug(s)
}
else {
println(s)
}
}
}
}