Skip to content

Commit

Permalink
Merge pull request #6865 from nextcloud/backport/6864/stable-3.13
Browse files Browse the repository at this point in the history
[stable-3.13] avoid logs too verbose and with binary data
  • Loading branch information
mgallien authored Jul 1, 2024
2 parents 1945901 + b16ee10 commit 0324395
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libsync/vfs/cfapi/cfapiwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,25 +237,18 @@ void CALLBACK cfApiFetchDataCallback(const CF_CALLBACK_INFO *callbackInfo, const

const auto alignAndSendData = [&](const QByteArray &receivedData) {
QByteArray data = protrudingData + receivedData;
qCWarning(lcCfApiWrapper) << "protrudingData + receivedData:" << data;
protrudingData.clear();
if (data.size() < cfapiBlockSize) {
protrudingData = data;
qCWarning(lcCfApiWrapper) << "protrudingData:" << protrudingData;
sendTransferInfo(data, dataOffset);
dataOffset += data.size();
return;
}
const auto protudingSize = data.size() % cfapiBlockSize;
qCWarning(lcCfApiWrapper) << "protudingSize:" << protudingSize;
protrudingData = data.right(protudingSize);
qCWarning(lcCfApiWrapper) << "data.right(protudingSize):" << protrudingData;
data.chop(protudingSize);
qCWarning(lcCfApiWrapper) << "data.chop(protudingSize)" << data;
qCWarning(lcCfApiWrapper) << "sendTransferInfo(data:" << data << ", dataOffset:" << dataOffset << ")";
sendTransferInfo(data, dataOffset);
dataOffset += data.size();
qCWarning(lcCfApiWrapper) << "dataOffset:" << dataOffset;
};

QObject::connect(&socket, &QLocalSocket::readyRead, &loop, [&] {
Expand Down

0 comments on commit 0324395

Please sign in to comment.