Skip to content

Commit

Permalink
chore: added log to see proxy decrypt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Feb 23, 2025
1 parent 19fcddf commit 2b1ec9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/core/controllers/gatewayController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ QStringList GatewayController::getProxyUrls()
}
} catch (...) {
Utils::logException();
qCritical() << "error loading private key from environment variables or decrypting payload";
qCritical() << "error loading private key from environment variables or decrypting payload" << encryptedResponseBody;
return {};
}

Expand All @@ -256,8 +256,6 @@ QStringList GatewayController::getProxyUrls()
bool GatewayController::shouldBypassProxy(QNetworkReply *reply, const QByteArray &responseBody, bool checkEncryption, const QByteArray &key,
const QByteArray &iv, const QByteArray &salt)
{
qDebug() << reply->error();
qDebug() << reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
if (reply->error() == QNetworkReply::NetworkError::OperationCanceledError || reply->error() == QNetworkReply::NetworkError::TimeoutError) {
qDebug() << "Timeout occurred";
return true;
Expand Down

0 comments on commit 2b1ec9c

Please sign in to comment.