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):
logger.info("launching WFCatalog update on : %s" % str(chunk))
files = json.dumps(chunk)
out = subprocess.Popen(
sp = subprocess.Popen(
[
"python3",
"./wfcatalog/collector/WFCatalogCollector.py",
......@@ -156,9 +156,12 @@ def wfcatalog(content):
"--stdout",
"--list",
files,
], stdout=subprocess.PIPE
).communicate()[0]
print(out.decode('utf-8'))
], stdout=subprocess.PIPE)
(out, err) = sp.communicate()
if out:
logger.info("WFCatalog standard output:\n%s", out)
if err:
logger.info("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