Add more logging with file prefixes

This makes the handoff between gendoc and batesian clearer in the logs.
This commit is contained in:
Kegan Dougal 2015-09-23 15:10:55 +01:00
parent 064a2c9172
commit f1adad5fb3
4 changed files with 15 additions and 14 deletions

View file

@ -253,13 +253,12 @@ def run_through_template(input):
]
if VERBOSE:
args.insert(2, "-v")
log("EXEC: %s" % " ".join(args))
log(" ==== build.py output ==== ")
log(
subprocess.check_output(
args,
stderr=out,
cwd="../templating"
)
print subprocess.check_output(
args,
stderr=out,
cwd="../templating"
)
except subprocess.CalledProcessError as e:
with open(tmpfile, 'r') as f: