Don't spam logs

With failed serial stacktraces
This commit is contained in:
Jelle Spijker 2023-03-21 15:09:48 +01:00
parent be1c218d88
commit e7b5ec1c5b
No known key found for this signature in database
GPG key ID: 034D1C0527888B65

View file

@ -53,7 +53,7 @@ class AutoDetectBaudJob(Job):
try:
serial = Serial(str(self._serial_port), baud_rate, timeout = read_timeout, writeTimeout = write_timeout)
except SerialException:
Logger.logException("w", "Unable to create serial")
Logger.warning(f"Unable to create serial connection to {serial} with baud rate {baud_rate}")
continue
else:
# We already have a serial connection, just change the baud rate.