From 9bce021939bd83d99d1480106c1a027d262f1719 Mon Sep 17 00:00:00 2001 From: Ivo Jimenez Date: Fri, 13 Sep 2024 21:44:31 -0400 Subject: [PATCH] dt/rpk: remove logging of exception Instead of logging, assume caller will catch/log the exception to avoid polluting the log when an exception is ignored. Signed-off-by: Ivo Jimenez --- tests/rptest/clients/rpk.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/rptest/clients/rpk.py b/tests/rptest/clients/rpk.py index 7a09e882f38c4..15c37214cd18f 100644 --- a/tests/rptest/clients/rpk.py +++ b/tests/rptest/clients/rpk.py @@ -1165,7 +1165,6 @@ def _execute(self, cmd, stdin=None, timeout=None, log_cmd=True, env=None): self._redpanda.logger.debug(f'\n{output}') if p.returncode: - self._redpanda.logger.error(stderror) raise RpkException( 'command %s returned %d, output: %s' % (' '.join(cmd) if log_cmd else '[redacted]', p.returncode,