From 204d66f3cc60c93a5ffefa3da75c332decc4871d Mon Sep 17 00:00:00 2001 From: jtc42 Date: Mon, 15 Jul 2019 17:49:25 +0100 Subject: [PATCH] Converted prints into logging --- .../stage/sangaboard/extensible_serial_instrument.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/stage/sangaboard/extensible_serial_instrument.py b/openflexure_microscope/stage/sangaboard/extensible_serial_instrument.py index 7b1e7fc5..63611627 100644 --- a/openflexure_microscope/stage/sangaboard/extensible_serial_instrument.py +++ b/openflexure_microscope/stage/sangaboard/extensible_serial_instrument.py @@ -271,10 +271,10 @@ class ExtensibleSerialInstrument(object): success = False for port_name, _, _ in serial.tools.list_ports.comports(): #loop through serial ports, apparently 256 is the limit?! try: - print("Trying port",port_name) + logging.info("Trying port",port_name) self.open(port_name) success = True - print("Success!") + logging.info("Success!") except: pass finally: