tools: frr-reload capture stderr so we can log it

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Daniel Walton 2017-09-19 13:54:35 +00:00
parent 0be4b77cda
commit 478f9ce277

View File

@ -1152,7 +1152,7 @@ if __name__ == '__main__':
while True: while True:
try: try:
_ = subprocess.check_output(cmd) _ = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
@ -1197,7 +1197,7 @@ if __name__ == '__main__':
fh.write(line + '\n') fh.write(line + '\n')
try: try:
subprocess.check_output(['/usr/bin/vtysh', '-f', filename]) subprocess.check_output(['/usr/bin/vtysh', '-f', filename], stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
log.warning("frr-reload.py failed due to\n%s" % e.output) log.warning("frr-reload.py failed due to\n%s" % e.output)
reload_ok = False reload_ok = False