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: GH-721 Log errors in asset and MMC update downloads. --- logic/net/MD5EtagDownload.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'logic/net/MD5EtagDownload.cpp') diff --git a/logic/net/MD5EtagDownload.cpp b/logic/net/MD5EtagDownload.cpp index 408e8813..fac9dcce 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; } -- cgit v1.2.3