From 55e5322fbeda2d07264cd9d9a910c7714aa5d025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Jan 2015 22:30:54 +0100 Subject: [PATCH] GH-721 Log errors in asset and MMC update downloads. --- logic/net/MD5EtagDownload.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/logic/net/MD5EtagDownload.cpp b/logic/net/MD5EtagDownload.cpp index 408e8813a..fac9dcced 100644 --- a/logic/net/MD5EtagDownload.cpp +++ b/logic/net/MD5EtagDownload.cpp @@ -63,11 +63,10 @@ void MD5EtagDownload::start() QNetworkRequest request(m_url); - QLOG_INFO() << "Downloading " << m_url.toString() << " got " << m_local_md5; + QLOG_INFO() << "Downloading " << m_url.toString() << " local MD5: " << m_local_md5; if(!m_local_md5.isEmpty()) { - QLOG_INFO() << "Got " << m_local_md5; request.setRawHeader(QString("If-None-Match").toLatin1(), m_local_md5.toLatin1()); } if(!m_expected_md5.isEmpty()) @@ -105,8 +104,8 @@ void MD5EtagDownload::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) void MD5EtagDownload::downloadError(QNetworkReply::NetworkError error) { - // error happened during download. - // TODO: log the reason why + QLOG_ERROR() << "Error" << error << ":" << m_reply->errorString() << "while downloading" + << m_reply->url(); m_status = Job_Failed; }