From: Jonatan Schlag Date: Wed, 9 May 2018 07:36:40 +0000 (+0200) Subject: Log exeptions when we try to login X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=61bf2ba3cacd8f1a46f7550e5ba070d7e643f338 Log exeptions when we try to login Signed-off-by: Jonatan Schlag --- diff --git a/src/nitsi/machine.py b/src/nitsi/machine.py index b49fe30..0d790ae 100644 --- a/src/nitsi/machine.py +++ b/src/nitsi/machine.py @@ -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)