diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java index f68c5ad5c268..8467e60fb672 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java @@ -30,6 +30,8 @@ import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.ex.QuickFixWrapper; import com.intellij.icons.AllIcons; import com.intellij.openapi.application.ApplicationManager; +import com.intellij.openapi.application.impl.ApplicationImpl; +import com.intellij.openapi.application.impl.ApplicationInfoImpl; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; @@ -340,7 +342,7 @@ class IntentionListStep implements ListPopupStep @NotNull public String getTextFor(final IntentionActionWithTextCaching action) { final String text = action.getAction().getText(); - if (text.startsWith("")) { + if (LOG.isDebugEnabled() && text.startsWith("")) { LOG.info("IntentionAction.getText() returned HTML: action=" + action + " text=" + text); } return text; diff --git a/plugins/cvs/cvs-core/src/com/intellij/cvsSupport2/javacvsImpl/io/ReadThread.java b/plugins/cvs/cvs-core/src/com/intellij/cvsSupport2/javacvsImpl/io/ReadThread.java index 7cfea386aa83..8f0e36479d14 100644 --- a/plugins/cvs/cvs-core/src/com/intellij/cvsSupport2/javacvsImpl/io/ReadThread.java +++ b/plugins/cvs/cvs-core/src/com/intellij/cvsSupport2/javacvsImpl/io/ReadThread.java @@ -84,7 +84,7 @@ public class ReadThread implements Runnable { public void run() { Thread.currentThread().setPriority(Thread.MAX_PRIORITY); try { - LOG.info("Starting CvsReadThread " + this); + if (LOG.isDebugEnabled()) LOG.info("Starting CvsReadThread " + this); while (true) { try { waitForRead(); @@ -199,7 +199,7 @@ public class ReadThread implements Runnable { private void executionCompleted() { READ_THREADS.remove(this); - LOG.info("Stopping CvsReadThread " + this); + if (LOG.isDebugEnabled()) LOG.info("Stopping CvsReadThread " + this); } private int size() { diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/changeBrowser/CvsCommittedChangesProvider.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/changeBrowser/CvsCommittedChangesProvider.java index 6738e4e69e03..0ad007a80863 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/changeBrowser/CvsCommittedChangesProvider.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/changeBrowser/CvsCommittedChangesProvider.java @@ -391,7 +391,7 @@ public class CvsCommittedChangesProvider implements CachingCommittedChangesProvi } final String remoteTag = changeList.getBranch(); if (!Comparing.equal(localTag, remoteTag)) { - LOG.info(filePath + ": local tag " + localTag + ", remote tag " + remoteTag); + if (LOG.isDebugEnabled()) LOG.info(filePath + ": local tag " + localTag + ", remote tag " + remoteTag); return true; } return false;