Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@ MerginApi::MerginApi( LocalProjectsManager &localProjects, QObject *parent )
}
} );

#ifndef QT_NO_SSL
QObject::connect( mManager, &QNetworkAccessManager::sslErrors, this, []( QNetworkReply * reply, const QList<QSslError> &errors )
{
CoreUtils::log( "URL attempting to access:", reply->url().toString() );
for ( const auto &error : errors )
{
CoreUtils::log( "Error Description:", error.errorString() );
}
} );
Comment on lines +116 to +123
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
QObject::connect( mManager, &QNetworkAccessManager::sslErrors, this, []( QNetworkReply * reply, const QList<QSslError> &errors )
{
CoreUtils::log( "URL attempting to access:", reply->url().toString() );
for ( const auto &error : errors )
{
CoreUtils::log( "Error Description:", error.errorString() );
}
} );
QObject::connect( mManager, &QNetworkAccessManager::sslErrors, this, []( const QNetworkReply *reply, const QList<QSslError> &errors )
{
CoreUtils::log( QStringLiteral( "SSL error" ), QStringLiteral( "URL attempting to access: " ) + reply->url().toString() );
for ( const auto &error : errors )
{
CoreUtils::log( QStringLiteral( "SSL error" ), QStringLiteral( "Error Description:" ) + error.errorString() );
}
} );

#endif

//
// check if the cache is up to date:
// - server url and type
Expand Down
Loading