Revision f362096f lib/utils.py
b/lib/utils.py | ||
---|---|---|
44 | 44 |
_locksheld = [] |
45 | 45 |
_re_shell_unquoted = re.compile('^[-.,=:/_+@A-Za-z0-9]+$') |
46 | 46 |
|
47 |
debug = False |
|
48 |
|
|
47 | 49 |
class RunResult(object): |
48 | 50 |
"""Simple class for holding the result of running external programs. |
49 | 51 |
|
... | ... | |
78 | 80 |
else: |
79 | 81 |
self.fail_reason = "unable to determine termination reason" |
80 | 82 |
|
83 |
if debug and self.failed: |
|
84 |
logger.Debug("Command '%s' failed (%s); output: %s" % |
|
85 |
(self.cmd, self.fail_reason, self.output)) |
|
86 |
|
|
81 | 87 |
def _GetOutput(self): |
82 | 88 |
"""Returns the combined stdout and stderr for easier usage. |
83 | 89 |
|
Also available in: Unified diff