Skip to content

Commit

Permalink
Merge pull request #57918 from nyalldawson/auth_errors
Browse files Browse the repository at this point in the history
Avoid some misleading ssl/auth errors in console output
  • Loading branch information
elpaso authored Jun 28, 2024
2 parents b578f1e + 0579df4 commit e27b126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsappsslerrorhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ void QgsAppSslErrorHandler::handleSslErrors( QNetworkReply *reply, const QList<Q
{
Q_ASSERT( QThread::currentThread() == QApplication::instance()->thread() );

QgsDebugError( QStringLiteral( "SSL errors occurred accessing URL:\n%1" ).arg( reply->request().url().toString() ) );

const QString hostport( QStringLiteral( "%1:%2" )
.arg( reply->url().host() )
.arg( reply->url().port() != -1 ? reply->url().port() : 443 )
Expand Down Expand Up @@ -65,6 +63,8 @@ void QgsAppSslErrorHandler::handleSslErrors( QNetworkReply *reply, const QList<Q
hostport ), 2 );
}

QgsDebugError( QStringLiteral( "SSL errors occurred accessing URL:\n%1" ).arg( reply->request().url().toString() ) );

QgsAuthSslErrorsDialog *dlg = new QgsAuthSslErrorsDialog( reply, errors, QgisApp::instance(), digest, hostport );
dlg->setWindowModality( Qt::ApplicationModal );
dlg->resize( 580, 512 );
Expand Down
2 changes: 1 addition & 1 deletion src/core/auth/qgsauthmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ bool QgsAuthManager::updateNetworkReply( QNetworkReply *reply, const QString &au
{
if ( !( authmethod->supportedExpansions() & QgsAuthMethod::NetworkReply ) )
{
QgsDebugError( QStringLiteral( "Network reply updating not supported by authcfg: %1" ).arg( authcfg ) );
QgsDebugMsgLevel( QStringLiteral( "Network reply updating not supported by authcfg: %1" ).arg( authcfg ), 3 );
return true;
}

Expand Down

0 comments on commit e27b126

Please sign in to comment.