diff --git a/src/tito/common.py b/src/tito/common.py index 1ea0627..722932a 100644 --- a/src/tito/common.py +++ b/src/tito/common.py @@ -413,6 +413,12 @@ def run_command(command, print_on_success=False): If command fails, print status code and command output. """ (status, output) = getstatusoutput(command) + + # ISSUE 253 - allow for better debug output + debug("Command: %s" % command) + debug("Status code: %s" % status) + debug("Command output: %s\n" % output) + if status > 0: msgs = [ "Error running command: %s\n" % command,