Commit 76889afc authored by Łukasz Nowak's avatar Łukasz Nowak

In case of not realtime output use log only.

Log environment can be used to output to console.
parent 0d813df8
...@@ -137,9 +137,8 @@ class Updater(object): ...@@ -137,9 +137,8 @@ class Updater(object):
stdout, stderr = subprocess_capture(p, quiet) stdout, stderr = subprocess_capture(p, quiet)
else: else:
stdout, stderr = p.communicate() stdout, stderr = p.communicate()
if not quiet: self.log(stdout)
sys.stdout.write(stdout) self.log(stderr)
sys.stderr.write(stderr)
result = dict(status_code=p.returncode, command=command, result = dict(status_code=p.returncode, command=command,
stdout=stdout, stderr=stderr) stdout=stdout, stderr=stderr)
if p.returncode: if p.returncode:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment