]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: log to start/local (per node) dir, log commands
authorLou Berger <lberger@labn.net>
Fri, 11 May 2018 12:29:42 +0000 (08:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
Signed-off-by: Lou Berger <lberger@labn.net>
tests/topotests/lib/topogen.py

index d88e4a9890e255c3fef6d97a34ee2a779fe2b2ab..5c8d1ddf36e53a45761474047b28538b17774736 100644 (file)
@@ -650,12 +650,13 @@ class TopoRouter(TopoGear):
         nrouter = self.tgen.net[self.name]
         result = nrouter.startRouter(self.tgen)
 
-        # Enable all daemon logging files and set them to the logdir.
+        # Enable all daemon command logging, logging files
+        # and set them to the start dir.
         for daemon, enabled in nrouter.daemons.iteritems():
             if enabled == 0:
                 continue
-            self.vtysh_cmd('configure terminal\nlog file {}/{}/{}.log'.format(
-                self.logdir, self.name, daemon), daemon=daemon)
+            self.vtysh_cmd('configure terminal\nlog commands\nlog file {}.log'.format(
+                daemon), daemon=daemon)
 
         if result != '':
             self.tgen.set_error(result)