Log exeptions when we try to login
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 9 May 2018 07:36:40 +0000 (09:36 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 9 May 2018 07:36:40 +0000 (09:36 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/machine.py

index b49fe30..0d790ae 100644 (file)
@@ -123,6 +123,8 @@ class machine():
             self.serial_con.login(self.password)
         except BaseException as e:
             self.log.error("Could not connect to the domain via serial console")
+            self.log.exception(e)
+            raise e
 
     def cmd(self, cmd):
         return self.serial_con.command(cmd)