mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 19:35:54 +08:00
Expanded logging
This commit is contained in:
parent
5e51d4d998
commit
ab934d356b
@ -275,7 +275,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 statuscode: %s", reply.readAll(), reply.attribute(QNetworkRequest.HttpStatusCodeAttribute))
|
Logger.log("d", "Something went wrong when trying to update data of API (%s). Message: %s Statuscode: %s", reply.url().toString(), 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…
x
Reference in New Issue
Block a user