From 9ed3f287d071b716d2494c0f6f59670902e1314f Mon Sep 17 00:00:00 2001 From: Vladimir Lagunov Date: Wed, 2 Oct 2024 16:10:31 +0200 Subject: [PATCH] IJent: don't flood logs if a problem inside IjentDeployingOverShellProcessStrategy occurs GitOrigin-RevId: 1e999990c2e7cec8c7bfae1e050d4b9de7b9f8be --- .../ijent/spi/IjentDeployingOverShellProcessStrategy.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/ijent/src/com/intellij/platform/ijent/spi/IjentDeployingOverShellProcessStrategy.kt b/platform/ijent/src/com/intellij/platform/ijent/spi/IjentDeployingOverShellProcessStrategy.kt index e6177e7867d2..363fdcf49a7b 100644 --- a/platform/ijent/src/com/intellij/platform/ijent/spi/IjentDeployingOverShellProcessStrategy.kt +++ b/platform/ijent/src/com/intellij/platform/ijent/spi/IjentDeployingOverShellProcessStrategy.kt @@ -105,7 +105,9 @@ abstract class IjentDeployingOverShellProcessStrategy(scope: CoroutineScope) : I } buffer.append(c.toChar()) } - LOG.trace { "Read line from stdout: $buffer" } + if (buffer.isNotEmpty()) { + LOG.trace { "Read line from stdout: $buffer" } + } buffer.toString() }