diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 5bd54ec2f..6f0ec8fd2 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1882,7 +1882,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { else if (tracker_reply_alert* p = dynamic_cast(a.get())) { QTorrentHandle h(p->handle); if(h.is_valid()){ - qDebug("Received a tracker reply from %s", p->url.c_str()); + qDebug("Received a tracker reply from %s (Num_peers=%d)", p->url.c_str(), p->num_peers); // Connection was successful now. Remove possible old errors QHash trackers_data = trackersInfos.value(h.hash(), QHash()); QString tracker_url = misc::toQString(p->url); diff --git a/src/rss.cpp b/src/rss.cpp index 1817df79e..9fcf2ec85 100644 --- a/src/rss.cpp +++ b/src/rss.cpp @@ -665,8 +665,11 @@ short RssStream::openRss(){ } return -1; } - if(!doc.setContent(&fileRss)) { - qDebug("can't read temp file, might be empty"); + QString error_msg = ""; + int line=-1; + int col = -1; + if(!doc.setContent(&fileRss, &error_msg, &line, &col)) { + qDebug("Error when parsing XML at line %d (col: %d): %s", line, col, error_msg.toLocal8Bit().data()); fileRss.close(); if(QFile::exists(filePath)) { fileRss.remove();