From 662dd80a1d90debe141527db28ac9b57d7780c83 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 17 Jan 2019 16:06:10 +0100 Subject: [PATCH] Add logging if the status code of toolbox request is not 200 --- plugins/Toolbox/src/Toolbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index ccd181cdbc..42cb5d52a8 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -649,6 +649,7 @@ class Toolbox(QObject, Extension): Logger.log("w", "Received invalid JSON for %s.", response_type) break else: + Logger.log("w", "Unable to connect with the server, we got a response code %s while trying to connect to %s", reply.attribute(QNetworkRequest.HttpStatusCodeAttribute), reply.url()) self.setViewPage("errored") self.resetDownload() elif reply.operation() == QNetworkAccessManager.PutOperation: