From: Matthieu Gallien Date: Wed, 29 Mar 2023 09:35:17 +0000 (+0200) Subject: improve logging when receiving metadata for encrypted folder X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~96^2^2~125^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b121a127c177c58cef7974ec98042e16168e9280;p=nextcloud-desktop.git improve logging when receiving metadata for encrypted folder Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/clientsideencryptionjobs.cpp b/src/libsync/clientsideencryptionjobs.cpp index 6d4c56c09..ba76d4576 100644 --- a/src/libsync/clientsideencryptionjobs.cpp +++ b/src/libsync/clientsideencryptionjobs.cpp @@ -55,7 +55,9 @@ bool GetMetadataApiJob::finished() return true; } QJsonParseError error{}; - auto json = QJsonDocument::fromJson(reply()->readAll(), &error); + const auto replyData = reply()->readAll(); + auto json = QJsonDocument::fromJson(replyData, &error); + qCInfo(lcCseJob) << "metadata received for file id" << _fileId << json.toJson(QJsonDocument::Compact); emit jsonReceived(json, reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt()); return true; }