mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 00:45:56 +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,6 +508,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
|
|
||||||
status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute)
|
status_code = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute)
|
||||||
if not status_code:
|
if not status_code:
|
||||||
|
if self._connection_state != ConnectionState.error:
|
||||||
Logger.log("d", "A reply from %s did not have status code.", reply.url().toString())
|
Logger.log("d", "A reply from %s did not have status code.", reply.url().toString())
|
||||||
# Received no or empty reply
|
# Received no or empty reply
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user