From 6dcd3b44b6c24de2afa2154c6787f71f79c7a453 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 7 Mar 2017 11:44:40 +0100 Subject: [PATCH] Removed uneeded debug code The method is always put, so no need to log it. --- .../UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 2d9192414b..9f0a8b20f5 100644 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -1059,17 +1059,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): if status_code in [200, 201, 202, 204]: pass # Request was successful! else: - operation_type = "Unknown" - if reply.operation() == QNetworkAccessManager.GetOperation: - operation_type = "Get" - elif reply.operation() == QNetworkAccessManager.PutOperation: - operation_type = "Put" - elif reply.operation() == QNetworkAccessManager.PostOperation: - operation_type = "Post" - elif reply.operation() == QNetworkAccessManager.DeleteOperation: - operation_type = "Delete" - - Logger.log("d", "Something went wrong when trying to update data of API (%s). Message: %s Statuscode: %s, operation: %s", reply_url, reply.readAll(), status_code, operation_type) + Logger.log("d", "Something went wrong when trying to update data of API (%s). Message: %s Statuscode: %s", reply_url, reply.readAll(), status_code) else: Logger.log("d", "NetworkPrinterOutputDevice got an unhandled operation %s", reply.operation())