From e7b5ec1c5b5317cd5f663a2f554e1b6baf62a6ce Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 21 Mar 2023 15:09:48 +0100 Subject: [PATCH] Don't spam logs With failed serial stacktraces --- plugins/USBPrinting/AutoDetectBaudJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/USBPrinting/AutoDetectBaudJob.py b/plugins/USBPrinting/AutoDetectBaudJob.py index 1ebd74af4f..1b791f6187 100644 --- a/plugins/USBPrinting/AutoDetectBaudJob.py +++ b/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.