Browse Source

Don't spam logs

With failed serial stacktraces
Jelle Spijker 2 years ago
parent
commit
e7b5ec1c5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/USBPrinting/AutoDetectBaudJob.py

+ 1 - 1
plugins/USBPrinting/AutoDetectBaudJob.py

@@ -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.