mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Add more RSS and tracker debug
This commit is contained in:
parent
ab36a358b7
commit
dedd9bd03c
@ -1882,7 +1882,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|||||||
else if (tracker_reply_alert* p = dynamic_cast<tracker_reply_alert*>(a.get())) {
|
else if (tracker_reply_alert* p = dynamic_cast<tracker_reply_alert*>(a.get())) {
|
||||||
QTorrentHandle h(p->handle);
|
QTorrentHandle h(p->handle);
|
||||||
if(h.is_valid()){
|
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
|
// Connection was successful now. Remove possible old errors
|
||||||
QHash<QString, TrackerInfos> trackers_data = trackersInfos.value(h.hash(), QHash<QString, TrackerInfos>());
|
QHash<QString, TrackerInfos> trackers_data = trackersInfos.value(h.hash(), QHash<QString, TrackerInfos>());
|
||||||
QString tracker_url = misc::toQString(p->url);
|
QString tracker_url = misc::toQString(p->url);
|
||||||
|
@ -665,8 +665,11 @@ short RssStream::openRss(){
|
|||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(!doc.setContent(&fileRss)) {
|
QString error_msg = "";
|
||||||
qDebug("can't read temp file, might be empty");
|
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();
|
fileRss.close();
|
||||||
if(QFile::exists(filePath)) {
|
if(QFile::exists(filePath)) {
|
||||||
fileRss.remove();
|
fileRss.remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user