When troubleshooting issues having to parse the \n mentally is kind of
difficult. Be nice to the user and have the newlines interpreted correctly.
It's fine if we waste some spaces in the logs, storage is cheap these days.
Related-bug: #
1403291
Change-Id: Ia6c651ae0d17c0165e4fe833c523061a66f7d7d1
addl_env=addl_env)
_stdout, _stderr = obj.communicate(process_input)
obj.stdin.close()
- m = _("\nCommand: %(cmd)s\nExit code: %(code)s\nStdout: %(stdout)r\n"
- "Stderr: %(stderr)r") % {'cmd': cmd, 'code': obj.returncode,
+ m = _("\nCommand: %(cmd)s\nExit code: %(code)s\nStdout: %(stdout)s\n"
+ "Stderr: %(stderr)s") % {'cmd': cmd, 'code': obj.returncode,
'stdout': _stdout, 'stderr': _stderr}
extra_ok_codes = extra_ok_codes or []