mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Added logging to quota info result slot.
This commit is contained in:
parent
64dd0d1b45
commit
a24ae13d9c
@ -237,8 +237,9 @@ void ownCloudInfo::slotGetQuotaFinished()
|
||||
{
|
||||
bool ok = false;
|
||||
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
|
||||
int http_result_code = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
|
||||
if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute) == 207) {
|
||||
if (http_result_code == 207) {
|
||||
// Parse DAV response
|
||||
QXmlStreamReader reader(reply);
|
||||
reader.addExtraNamespaceDeclaration(QXmlStreamNamespaceDeclaration("d", "DAV:"));
|
||||
@ -271,6 +272,7 @@ void ownCloudInfo::slotGetQuotaFinished()
|
||||
emit quotaUpdated(total, quotaUsedBytes);
|
||||
_lastEtag = etag;
|
||||
} else {
|
||||
qDebug() << "Quota request *not* successful, http result code is " << http_result_code;
|
||||
_lastQuotaTotalBytes = 0;
|
||||
_lastQuotaUsedBytes = 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user