]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotests: start logging early
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 2 Jul 2020 17:49:25 +0000 (14:49 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 2 Jul 2020 17:52:46 +0000 (14:52 -0300)
Start logging early everything (including debug) to
`/tmp/topotest/<test>/<node>/<daemon>.{out,err}`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
tests/topotests/lib/topotest.py

index 21db59b096307e14d0b96aee83c72313806fc280..0fe3f463a500b10c9839a74df072a98d65cdf333 100644 (file)
@@ -1188,7 +1188,7 @@ class Router(Node):
             zebra_path = os.path.join(self.daemondir, "zebra")
             zebra_option = self.daemons_options["zebra"]
             self.cmd(
-                "{0} {1} > zebra.out 2> zebra.err &".format(
+                "{0} {1} --log stdout --log-level debug > zebra.out 2> zebra.err &".format(
                     zebra_path, zebra_option, self.logdir, self.name
                 )
             )
@@ -1204,7 +1204,7 @@ class Router(Node):
             staticd_path = os.path.join(self.daemondir, "staticd")
             staticd_option = self.daemons_options["staticd"]
             self.cmd(
-                "{0} {1} > staticd.out 2> staticd.err &".format(
+                "{0} {1} --log stdout --log-level debug > staticd.out 2> staticd.err &".format(
                     staticd_path, staticd_option, self.logdir, self.name
                 )
             )
@@ -1228,7 +1228,7 @@ class Router(Node):
 
             daemon_path = os.path.join(self.daemondir, daemon)
             self.cmd(
-                "{0} {1} > {2}.out 2> {2}.err &".format(
+                "{0} {1} --log stdout --log-level debug > {2}.out 2> {2}.err &".format(
                     daemon_path, self.daemons_options.get(daemon, ""), daemon
                 )
             )