Log failure reasons of cache downloads

This commit is contained in:
Petr Mrázek 2013-10-06 03:47:41 +02:00
parent 77d5ea36ae
commit 651bed91a0
2 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,7 @@ void CacheDownload::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
void CacheDownload::downloadError(QNetworkReply::NetworkError error)
{
// error happened during download.
// TODO: log the reason why
QLOG_ERROR() << "Failed" << m_url.toString() << "with reason" << error;
m_status = Job_Failed;
}
void CacheDownload::downloadFinished()