Skip to content

Commit

Permalink
Less noise from QgsNetworkAccessManager
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 15, 2017
1 parent ae6ad5c commit a8415a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/qgsnetworkaccessmanager.cpp
Expand Up @@ -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();
}
};
Expand Down

0 comments on commit a8415a9

Please sign in to comment.