mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -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,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…
Add table
Add a link
Reference in a new issue