summaryrefslogtreecommitdiffstats
path: root/logic/net/MD5EtagDownload.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-11 22:30:54 +0100
committerPetr Mrázek <peterix@gmail.com>2015-01-11 22:30:54 +0100
commit55e5322fbeda2d07264cd9d9a910c7714aa5d025 (patch)
tree0c39b9156d71a7eae38b33112a787bf0247f2b32 /logic/net/MD5EtagDownload.cpp
parent0886786bb56e1ebfb53716127fd3ff0366e9a9f3 (diff)
downloadMultiMC-55e5322fbeda2d07264cd9d9a910c7714aa5d025.tar
MultiMC-55e5322fbeda2d07264cd9d9a910c7714aa5d025.tar.gz
MultiMC-55e5322fbeda2d07264cd9d9a910c7714aa5d025.tar.lz
MultiMC-55e5322fbeda2d07264cd9d9a910c7714aa5d025.tar.xz
MultiMC-55e5322fbeda2d07264cd9d9a910c7714aa5d025.zip
GH-721 Log errors in asset and MMC update downloads.
Diffstat (limited to 'logic/net/MD5EtagDownload.cpp')
-rw-r--r--logic/net/MD5EtagDownload.cpp7
1 files changed, 3 insertions, 4 deletions
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;
}