mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Improved logging when put operation failed
CURA-1036
This commit is contained in:
parent
0b9af6055c
commit
be779cb92a
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 204:
|
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 204:
|
||||||
pass # Request was sucesfull!
|
pass # Request was sucesfull!
|
||||||
else:
|
else:
|
||||||
Logger.log("d","Something went wrong when trying to update data of API. %s", reply.readAll())
|
Logger.log("d","Something went wrong when trying to update data of API. %s statuscode: %s", reply.readAll(), reply.attribute(QNetworkRequest.HttpStatusCodeAttribute))
|
||||||
else:
|
else:
|
||||||
Logger.log("d", "NetworkPrinterOutputDevice got an unhandled operation %s", reply.operation())
|
Logger.log("d", "NetworkPrinterOutputDevice got an unhandled operation %s", reply.operation())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue