Connectivity: Improve log output

This commit is contained in:
Markus Goetz 2015-11-17 11:02:15 +01:00
parent 9978dc3f6c
commit ef17dc6482
2 changed files with 6 additions and 2 deletions

View file

@ -142,7 +142,7 @@ void AccountState::checkConnectivity(CredentialFetchMode credentialsFetchMode)
} }
if (_connectionValidator) { if (_connectionValidator) {
qDebug() << "ConnectionValidator already running, ignoring"; qDebug() << "ConnectionValidator already running, ignoring" << account()->displayName();
return; return;
} }
_credentialsFetchMode = credentialsFetchMode; _credentialsFetchMode = credentialsFetchMode;

View file

@ -85,7 +85,11 @@ void ConnectionValidator::systemProxyLookupDone(const QNetworkProxy &proxy) {
return; return;
} }
qDebug() << Q_FUNC_INFO << "Setting QNAM proxy to be system proxy" << printQNetworkProxy(proxy); if (proxy.type() != QNetworkProxy::NoProxy) {
qDebug() << "Setting QNAM proxy to be system proxy" << printQNetworkProxy(proxy);
} else {
qDebug() << "No system proxy set by OS";
}
_account->networkAccessManager()->setProxy(proxy); _account->networkAccessManager()->setProxy(proxy);
slotCheckServerAndAuth(); slotCheckServerAndAuth();