diff --git a/backupbot.py b/backupbot.py index 2675cd6..96c93c6 100755 --- a/backupbot.py +++ b/backupbot.py @@ -131,9 +131,9 @@ def run_commands(commands): command = command.removeprefix('bash -c \'').removeprefix('sh -c \'') command = command.removesuffix('\'') command = f"bash -c 'set -o pipefail;{command}'" - result = container.exec_run(command) - logging.info(f"run command in {container.name}") + logging.info(f"run command in {container.name}:") logging.info(command) + result = container.exec_run(command) if result.exit_code: logging.error( f"Failed to run command {command} in {container.name}: {result.output.decode()}")