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>
  • Loading branch information
ivotron committed Sep 16, 2024
1 parent f4c27fd commit 9bce021
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 @@ -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,
Expand Down

0 comments on commit 9bce021

Please sign in to comment.