diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-09-19 15:54:35 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-09-19 15:54:35 +0200 |
commit | 478f9ce277d1b65794e3883bedc2f2206cafcd7c (patch) | |
tree | 148276d23dcac582d703d1812ca2c159f0b6eb29 /tools/frr-reload.py | |
parent | bgpd: debugs on subnets need to use apply_mask() (diff) | |
download | frr-478f9ce277d1b65794e3883bedc2f2206cafcd7c.tar.xz frr-478f9ce277d1b65794e3883bedc2f2206cafcd7c.zip |
tools: frr-reload capture stderr so we can log it
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'tools/frr-reload.py')
-rwxr-xr-x | tools/frr-reload.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 53188ec31..afe66b6ea 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -1152,7 +1152,7 @@ if __name__ == '__main__': while True: try: - _ = subprocess.check_output(cmd) + _ = subprocess.check_output(cmd, stderr=subprocess.STDOUT) except subprocess.CalledProcessError: @@ -1197,7 +1197,7 @@ if __name__ == '__main__': fh.write(line + '\n') 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: log.warning("frr-reload.py failed due to\n%s" % e.output) reload_ok = False |