mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
LP-363 improve opmap logging
This commit is contained in:
parent
c86c7d1b52
commit
4a56d3d917
@ -183,6 +183,7 @@ QByteArray OPMaps::GetImageFrom(const MapType::Types &type, const Point &pos, co
|
|||||||
}
|
}
|
||||||
#ifdef DEBUG_GMAPS
|
#ifdef DEBUG_GMAPS
|
||||||
qDebug() << "Timeout is " << Timeout;
|
qDebug() << "Timeout is " << Timeout;
|
||||||
|
qDebug() << "Get " << qheader.url();
|
||||||
#endif // DEBUG_GMAPS
|
#endif // DEBUG_GMAPS
|
||||||
reply = network.get(qheader);
|
reply = network.get(qheader);
|
||||||
#ifdef DEBUG_GMAPS
|
#ifdef DEBUG_GMAPS
|
||||||
@ -199,7 +200,7 @@ QByteArray OPMaps::GetImageFrom(const MapType::Types &type, const Point &pos, co
|
|||||||
#endif // DEBUG_GMAPS
|
#endif // DEBUG_GMAPS
|
||||||
// If you are seeing Error 6 here you are dealing with a QT SSL Bug!!!
|
// If you are seeing Error 6 here you are dealing with a QT SSL Bug!!!
|
||||||
if ((reply->error() != QNetworkReply::NoError) | (time.elapsed() > Timeout * 6)) {
|
if ((reply->error() != QNetworkReply::NoError) | (time.elapsed() > Timeout * 6)) {
|
||||||
qDebug() << "reply error: " << reply->error() << " see table at - http://doc.qt.io/qt-5/qnetworkreply.html";
|
qWarning() << "Reply error: " << reply->errorString() << qheader.url();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = reply->readAll();
|
ret = reply->readAll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user