Skip to content

Commit

Permalink
dt/rpk: remove logging of exception
Browse files Browse the repository at this point in the history
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 <ivo@redpanda.com>
(cherry picked from commit 9bce021)
  • Loading branch information
ivotron authored and vbotbuildovich committed Sep 19, 2024
1 parent 0871cff commit 86409ac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/rptest/clients/rpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,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,
Expand Down

0 comments on commit 86409ac

Please sign in to comment.