From 9d8fd984a07d494b82ae5bfdcafca987cff6bf55 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 2 Jun 2017 21:36:03 +0200 Subject: [PATCH] Revert "Log exit codes to log file" This reverts commit 2a39d9c091d691a6a0308c91dba3c1e2ca3d1ba8. I did not test this well enough, sorry! This introduced problems such as interactive shell not working anymore (#40), cryptsetup partion creating not working anymore etc. --- pmb/helpers/run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pmb/helpers/run.py b/pmb/helpers/run.py index c71bb302..ca7037e9 100644 --- a/pmb/helpers/run.py +++ b/pmb/helpers/run.py @@ -68,8 +68,7 @@ def _execute(loop, args, cmd, log_message, log, return_stdout, check=True): if return_code != 0 and False: if check: raise RuntimeError("Command failed: \n" + protocol.error) - args.logfd.write('Program exited with: {}\n'.format(transport.get_returncode())) - args.logfd.flush() + print('Program exited with: {}'.format(transport.get_returncode())) if return_stdout: return protocol.output