Remove all stderr logging from 'blaze query' expanding directories during sync.
@@ -39,7 +39,6 @@ import com.google.idea.blaze.base.sync.workspace.WorkspaceHelper;
import com.google.idea.blaze.base.sync.workspace.WorkspacePathResolver;
import com.google.idea.blaze.base.sync.workspace.WorkspacePathResolverProvider;
import com.google.idea.common.experiments.BoolExperiment;
-import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import java.io.File;
import java.util.Collection;
@@ -56,8 +55,6 @@ import org.jetbrains.ide.PooledThreadExecutor;
*/
public class BlazeQuerySourceToTargetProvider implements SourceToTargetProvider {
- private static final Logger logger = Logger.getInstance(BlazeQuerySourceToTargetProvider.class);
-
/**
* Currently disabled for performance reasons. SourceToTargetProvider is called often, in the
* background, and we don't want to monopolize the local blaze server.
@@ -127,13 +124,6 @@ public class BlazeQuerySourceToTargetProvider implements SourceToTargetProvider
.addBlazeCommand(command)
.context(context)
.stdout(LineProcessingOutputStream.of(outputProcessor))
- .stderr(
- LineProcessingOutputStream.of(
- line -> {
- // errors are expected, so limit logging to info level
- logger.info(line);
- return true;
- }))
.build()
.run();
if (retVal != 0 && retVal != 3) {
