Set the log level of a serial connection to info
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 07:36:36 +0000 (09:36 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 07:36:36 +0000 (09:36 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
serial_connection.py

index 511d349..f2f14bf 100644 (file)
@@ -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):