print more logging for greader acc

This commit is contained in:
Martin Rotter 2022-05-31 07:33:21 +02:00
parent f7fde8566e
commit 13a993434f
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<url type="donation">https://github.com/sponsors/martinrotter</url> <url type="donation">https://github.com/sponsors/martinrotter</url>
<content_rating type="oars-1.1" /> <content_rating type="oars-1.1" />
<releases> <releases>
<release version="4.2.2" date="2022-05-27"/> <release version="4.2.2" date="2022-05-31"/>
</releases> </releases>
<content_rating type="oars-1.0"> <content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute> <content_attribute id="violence-cartoon">none</content_attribute>

View File

@ -807,6 +807,10 @@ QNetworkReply::NetworkError GreaderNetwork::clientLogin(const QNetworkProxy& pro
.arg(QString::fromLocal8Bit(QUrl::toPercentEncoding(username())), .arg(QString::fromLocal8Bit(QUrl::toPercentEncoding(username())),
QString::fromLocal8Bit(QUrl::toPercentEncoding(password()))) QString::fromLocal8Bit(QUrl::toPercentEncoding(password())))
.toLocal8Bit(); .toLocal8Bit();
qDebugNN << LOGSEC_GREADER << "Arguments for login:" << QUOTE_W_SPACE_DOT(args);
qDebugNN << LOGSEC_GREADER << "Full loging URL:" << QUOTE_W_SPACE_DOT(full_url);
auto network_result = auto network_result =
NetworkFactory::performNetworkOperation(full_url, NetworkFactory::performNetworkOperation(full_url,
timeout, timeout,
@ -820,6 +824,9 @@ QNetworkReply::NetworkError GreaderNetwork::clientLogin(const QNetworkProxy& pro
{}, {},
proxy); proxy);
qDebugNN << LOGSEC_GREADER << "Login network result:" << QUOTE_W_SPACE_DOT(network_result.m_httpCode);
qDebugNN << LOGSEC_GREADER << "Login response data:" << QUOTE_W_SPACE_DOT(output);
if (network_result.m_networkError == QNetworkReply::NetworkError::NoError) { if (network_result.m_networkError == QNetworkReply::NetworkError::NoError) {
// Save credentials. // Save credentials.
auto lines = QString::fromUtf8(output).replace(QSL("\r"), QString()).split('\n'); auto lines = QString::fromUtf8(output).replace(QSL("\r"), QString()).split('\n');