Skip to content
Permalink
Browse files

Less noise from QgsNetworkAccessManager

  • Loading branch information
m-kuhn committed Jun 15, 2017
1 parent ae6ad5c commit a8415a9dbc6e0fc47a36938f1cc41f44a31253a2
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsnetworkaccessmanager.cpp
@@ -76,24 +76,24 @@ class QgsNetworkProxyFactory : public QNetworkProxyFactory
{
if ( url.startsWith( exclude ) )
{
QgsDebugMsg( QString( "using default proxy for %1 [exclude %2]" ).arg( url, exclude ) );
QgsDebugMsgLevel( QString( "using default proxy for %1 [exclude %2]" ).arg( url, exclude ), 4 );
return QList<QNetworkProxy>() << QNetworkProxy();
}
}

if ( nam->useSystemProxy() )
{
QgsDebugMsg( QString( "requesting system proxy for query %1" ).arg( url ) );
QgsDebugMsgLevel( QString( "requesting system proxy for query %1" ).arg( url ), 4 );
QList<QNetworkProxy> proxies = QNetworkProxyFactory::systemProxyForQuery( query );
if ( !proxies.isEmpty() )
{
QgsDebugMsg( QString( "using system proxy %1:%2 for query" )
.arg( proxies.first().hostName() ).arg( proxies.first().port() ) );
QgsDebugMsgLevel( QString( "using system proxy %1:%2 for query" )
.arg( proxies.first().hostName() ).arg( proxies.first().port() ), 4 );
return proxies;
}
}

QgsDebugMsg( QString( "using fallback proxy for %1" ).arg( url ) );
QgsDebugMsgLevel( QString( "using fallback proxy for %1" ).arg( url ), 4 );
return QList<QNetworkProxy>() << nam->fallbackProxy();
}
};

0 comments on commit a8415a9

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