]> git.ipfire.org Git - nitsi.git/blobdiff - src/nitsi/machine.py
Add logging to test.log of all serial connection output
[nitsi.git] / src / nitsi / machine.py
index 0d790ae0eab5be5c4f5ba059daee6aeab47dca0c..d0170a0cc3e7f2107da1c0921f5d951610b22aad 100644 (file)
@@ -117,9 +117,9 @@ class machine():
 
         #serial_con.close()
 
-    def login(self):
+    def login(self, log_file):
         try:
-            self.serial_con = serial_connection(self.get_serial_device(), username=self.username)
+            self.serial_con = serial_connection(self.get_serial_device(), username=self.username, log_file=log_file, name=self.name)
             self.serial_con.login(self.password)
         except BaseException as e:
             self.log.error("Could not connect to the domain via serial console")