Skip to content
Permalink
Browse files

[auth] Added debug messages

  • Loading branch information
elpaso committed Sep 27, 2017
1 parent 40b7f79 commit 385cca6036c0d46f2054c9256ae61aec6046b7a1
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/core/auth/qgsauthmanager.cpp
  2. +2 −1 src/core/qgsnetworkaccessmanager.cpp
@@ -1467,7 +1467,7 @@ bool QgsAuthManager::updateNetworkProxy( QNetworkProxy &proxy, const QString &au
{
if ( !( authmethod->supportedExpansions() & QgsAuthMethod::NetworkProxy ) )
{
QgsDebugMsg( QString( "Proxy updating not supported by authcfg: %1" ).arg( authcfg ) );
QgsDebugMsg( QStringLiteral( "Proxy updating not supported by authcfg: %1" ).arg( authcfg ) );
return true;
}

@@ -1476,6 +1476,7 @@ bool QgsAuthManager::updateNetworkProxy( QNetworkProxy &proxy, const QString &au
authmethod->clearCachedConfig( authcfg );
return false;
}
QgsDebugMsg( QStringLiteral( "Proxy updated successfully from authcfg: %1" ).arg( authcfg ) );
return true;
}

@@ -359,7 +359,7 @@ void QgsNetworkAccessManager::setupDefaultProxyAndCache()
{
proxyType = QNetworkProxy::FtpCachingProxy;
}
QgsDebugMsg( QString( "setting proxy %1 %2:%3 %4/%5" )
QgsDebugMsg( QStringLiteral( "setting proxy %1 %2:%3 %4/%5" )
.arg( proxyType )
.arg( proxyHost ).arg( proxyPort )
.arg( proxyUser, proxyPassword )
@@ -372,6 +372,7 @@ void QgsNetworkAccessManager::setupDefaultProxyAndCache()
QString authcfg = settings.value( QStringLiteral( "proxy/authcfg" ), "" ).toString();
if ( !authcfg.isEmpty( ) )
{
QgsDebugMsg( QStringLiteral( "setting proxy from stored authentication configuration %1" ).arg( authcfg ) );
QgsAuthManager::instance()->updateNetworkProxy( proxy, authcfg );
}

0 comments on commit 385cca6

Please sign in to comment.
You can’t perform that action at this time.