mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:26:00 +08:00
Only log messages without status when we are not in error mode.
This prevents spamming the logs with messages
This commit is contained in:
parent
f60871e068
commit
1dbd789d10
@ -508,7 +508,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
|
||||
status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute)
|
||||
if not status_code:
|
||||
Logger.log("d", "A reply from %s did not have status code.", reply.url().toString())
|
||||
if self._connection_state != ConnectionState.error:
|
||||
Logger.log("d", "A reply from %s did not have status code.", reply.url().toString())
|
||||
# Received no or empty reply
|
||||
return
|
||||
reply_url = reply.url().toString()
|
||||
|
Loading…
x
Reference in New Issue
Block a user