diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-10-06 03:47:41 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-10-06 03:47:41 +0200 |
commit | 651bed91a0d6aff551fd6880a7cdbca403064c4f (patch) | |
tree | 339f7330409e3aeba103709a7c54fd25b007b66f /logic/net/DownloadJob.cpp | |
parent | 77d5ea36ae096a212280d34b978f4cf0b030431f (diff) | |
download | MultiMC-651bed91a0d6aff551fd6880a7cdbca403064c4f.tar MultiMC-651bed91a0d6aff551fd6880a7cdbca403064c4f.tar.gz MultiMC-651bed91a0d6aff551fd6880a7cdbca403064c4f.tar.lz MultiMC-651bed91a0d6aff551fd6880a7cdbca403064c4f.tar.xz MultiMC-651bed91a0d6aff551fd6880a7cdbca403064c4f.zip |
Log failure reasons of cache downloads
Diffstat (limited to 'logic/net/DownloadJob.cpp')
-rw-r--r-- | logic/net/DownloadJob.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/logic/net/DownloadJob.cpp b/logic/net/DownloadJob.cpp index f6275b7a..fa3e655e 100644 --- a/logic/net/DownloadJob.cpp +++ b/logic/net/DownloadJob.cpp @@ -54,18 +54,18 @@ void DownloadJob::partSucceeded(int index) partProgress(index, slot.total_progress, slot.total_progress); num_succeeded++; - QLOG_INFO() << m_job_name.toLocal8Bit() << " progress: " << num_succeeded << "/" + QLOG_INFO() << m_job_name.toLocal8Bit() << "progress:" << num_succeeded << "/" << downloads.size(); if (num_failed + num_succeeded == downloads.size()) { if (num_failed) { - QLOG_ERROR() << m_job_name.toLocal8Bit() << " failed."; + QLOG_ERROR() << m_job_name.toLocal8Bit() << "failed."; emit failed(); } else { - QLOG_INFO() << m_job_name.toLocal8Bit() << " succeeded."; + QLOG_INFO() << m_job_name.toLocal8Bit() << "succeeded."; emit succeeded(); } } @@ -76,17 +76,17 @@ void DownloadJob::partFailed(int index) auto &slot = parts_progress[index]; if (slot.failures == 3) { - QLOG_ERROR() << "Part " << index << " failed 3 times (" << downloads[index]->m_url << ")"; + QLOG_ERROR() << "Part" << index << "failed 3 times (" << downloads[index]->m_url << ")"; num_failed++; if (num_failed + num_succeeded == downloads.size()) { - QLOG_ERROR() << m_job_name.toLocal8Bit() << " failed."; + QLOG_ERROR() << m_job_name.toLocal8Bit() << "failed."; emit failed(); } } else { - QLOG_ERROR() << "Part " << index << " failed, restarting (" << downloads[index]->m_url + QLOG_ERROR() << "Part" << index << "failed, restarting (" << downloads[index]->m_url << ")"; // restart the job slot.failures++; |