mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 04:44:36 +03:00
Log error properly
This commit is contained in:
parent
a3fd340187
commit
89c58921de
1 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,6 @@
|
|||
#include "session.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
@ -2185,8 +2184,6 @@ void Session::generateResumeData(const bool final)
|
|||
// Called on exit
|
||||
void Session::saveResumeData()
|
||||
{
|
||||
qDebug("Saving resume data...");
|
||||
|
||||
// Pause session
|
||||
m_nativeSession->pause();
|
||||
|
||||
|
@ -2197,7 +2194,8 @@ void Session::saveResumeData()
|
|||
while (m_numResumeData > 0) {
|
||||
const std::vector<lt::alert *> alerts = getPendingAlerts(lt::seconds(30));
|
||||
if (alerts.empty()) {
|
||||
fprintf(stderr, " aborting with %d outstanding torrents to save resume data for\n", m_numResumeData);
|
||||
LogMsg(tr("Error: Aborted saving resume data for %1 outstanding torrents.").arg(QString::number(m_numResumeData))
|
||||
, Log::CRITICAL);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue