diff --git a/Quotient/connection.cpp b/Quotient/connection.cpp index 872c6a3e..3d61a188 100644 --- a/Quotient/connection.cpp +++ b/Quotient/connection.cpp @@ -132,8 +132,13 @@ void Connection::resolveServer(const QString& mxid) d->resolverJob = callApi(); // Make sure baseUrl is restored in any case, even an abandon, and before any further processing connect(d->resolverJob.get(), &BaseJob::finished, this, - [this, oldBaseUrl] { d->data->setBaseUrl(oldBaseUrl); }); + [this, oldBaseUrl] { + qCWarning(MAIN) << "Restoring base url"; + qCWarning(MAIN) << "Old base url" << oldBaseUrl; + d->data->setBaseUrl(oldBaseUrl); + }); d->resolverJob.onResult(this, [this, maybeBaseUrl]() mutable { + qCWarning(MAIN) << "ASDF"; if (d->resolverJob->error() != BaseJob::NotFound) { if (!d->resolverJob->status().good()) { qCWarning(MAIN) << "Fetching .well-known file failed, FAIL_PROMPT"; @@ -151,11 +156,11 @@ void Connection::resolveServer(const QString& mxid) emit resolveError(tr("The homeserver base URL is invalid")); return; } - qCInfo(MAIN) << ".well-known URL for" << maybeBaseUrl.host() << "is" + qCWarning(MAIN) << ".well-known URL for" << maybeBaseUrl.host() << "is" << baseUrl.toString(); setHomeserver(baseUrl); } else { - qCInfo(MAIN) << "No .well-known file, using" << maybeBaseUrl << "for base URL"; + qCWarning(MAIN) << "No .well-known file, using" << maybeBaseUrl << "for base URL"; setHomeserver(maybeBaseUrl); } Q_ASSERT(d->loginFlowsJob != nullptr); // Ensured by setHomeserver() diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index c189f16d..18b0c125 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -965,7 +965,6 @@ void TestManager::finalize(const QString& lastWords) clog << "Logging out" << endl; c->logout().then( this, [this, lastWords] { - //clog << lastWords.toStdString() << endl; QCoreApplication::exit(!testSuite ? -3 : succeeded.empty() && failed.empty() && running.empty()