Commit 8cebe512 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Get stdout and stderr from wfcollector

parent 529d87d9
......@@ -147,7 +147,7 @@ def wfcatalog(content):
for chunk in grouper(content.splitlines(), 50):"launching WFCatalog update on : %s" % str(chunk))
files = json.dumps(chunk)
out = subprocess.Popen(
sp = subprocess.Popen(
......@@ -156,9 +156,12 @@ def wfcatalog(content):
], stdout=subprocess.PIPE
], stdout=subprocess.PIPE)
(out, err) = sp.communicate()
if out:"WFCatalog standard output:\n%s", out)
if err:"WFCatalog standard error:\n%s", err)
if __name__ == "__main__":
Supports Markdown
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