mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 08:47:50 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue