From: Jonatan Schlag Date: Tue, 1 May 2018 07:36:36 +0000 (+0200) Subject: Set the log level of a serial connection to info X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5045ec58ba89df33a79935f01c74f61cbd5de5aa;p=nitsi.git Set the log level of a serial connection to info Signed-off-by: Jonatan Schlag --- diff --git a/serial_connection.py b/serial_connection.py index 511d349..f2f14bf 100644 --- a/serial_connection.py +++ b/serial_connection.py @@ -16,6 +16,7 @@ class serial_connection(): self.back_at_prompt_pattern = None self.username = username self.log = logger.getChild(os.path.basename(device)) + self.log.setLevel(logging.INFO) self.con = serial.Serial(device) def read(self, size=1):