mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
[o2] Avoid a misleading console error output
This commit is contained in:
parent
531f366372
commit
87f5c0c0d4
5
external/o2/src/o2.cpp
vendored
5
external/o2/src/o2.cpp
vendored
@ -432,7 +432,6 @@ void O2::refresh() {
|
|||||||
|
|
||||||
void O2::onRefreshFinished() {
|
void O2::onRefreshFinished() {
|
||||||
QNetworkReply *refreshReply = qobject_cast<QNetworkReply *>(sender());
|
QNetworkReply *refreshReply = qobject_cast<QNetworkReply *>(sender());
|
||||||
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
|
|
||||||
if (refreshReply->error() == QNetworkReply::NoError) {
|
if (refreshReply->error() == QNetworkReply::NoError) {
|
||||||
QByteArray reply = refreshReply->readAll();
|
QByteArray reply = refreshReply->readAll();
|
||||||
QVariantMap tokens = parseTokenResponse(reply);
|
QVariantMap tokens = parseTokenResponse(reply);
|
||||||
@ -445,6 +444,10 @@ void O2::onRefreshFinished() {
|
|||||||
Q_EMIT refreshFinished(QNetworkReply::NoError);
|
Q_EMIT refreshFinished(QNetworkReply::NoError);
|
||||||
qDebug() << " New token expires in" << expires() << "seconds";
|
qDebug() << " New token expires in" << expires() << "seconds";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
|
||||||
|
}
|
||||||
refreshReply->deleteLater();
|
refreshReply->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user