From 3b14e354b0a7c5379bafd446a0c5e558f68c7ca3 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 16 Oct 2020 13:07:57 +0200 Subject: [PATCH] [libcalamares] Log more HTTP errors during requests --- src/libcalamares/network/Manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcalamares/network/Manager.cpp b/src/libcalamares/network/Manager.cpp index 57faae28c..d089551bb 100644 --- a/src/libcalamares/network/Manager.cpp +++ b/src/libcalamares/network/Manager.cpp @@ -223,6 +223,7 @@ synchronousRun( QNetworkAccessManager* nam, const QUrl& url, const RequestOption auto* reply = asynchronousRun( nam, url, options ); if ( !reply ) { + cDebug() << "Could not create request for" << url; return qMakePair( RequestStatus( RequestStatus::Failed ), nullptr ); } @@ -232,10 +233,12 @@ synchronousRun( QNetworkAccessManager* nam, const QUrl& url, const RequestOption reply->deleteLater(); if ( reply->isRunning() ) { + cDebug() << "Timeout on request for" << url; return qMakePair( RequestStatus( RequestStatus::Timeout ), nullptr ); } else if ( reply->error() != QNetworkReply::NoError ) { + cDebug() << "HTTP error" << reply->error() << "on request for" << url; return qMakePair( RequestStatus( RequestStatus::HttpError ), nullptr ); } else