From 7d860b6c243c7171f291cfaf6f28d78371253d00 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 11 Jun 2019 02:11:28 +0800 Subject: [PATCH] Log save_resume_data_failed_alert --- src/base/bittorrent/torrenthandle.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index 7061b2987..f325ee75c 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f { // if torrent has no metadata we should save dummy fastresume data // containing Magnet URI and qBittorrent own resume data only - if (p->error.value() == lt::errors::no_metadata) + if (p->error.value() == lt::errors::no_metadata) { handleSaveResumeDataAlert(nullptr); - else + } + else { + LogMsg(tr("Save resume data failed. Torrent: \"%1\", error: \"%2\"") + .arg(name(), QString::fromStdString(p->error.message())), Log::CRITICAL); m_session->handleTorrentResumeDataFailed(this); + } } void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p)