mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
chore: change the extra quota logging to debug level
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
01526c34e5
commit
cd8601e3be
@ -1099,41 +1099,41 @@ int64_t ProcessDirectoryJob::folderBytesAvailable(const SyncFileItemPtr &item, c
|
||||
const auto isUpdateMetadataOrRename = item->_instruction != CSYNC_INSTRUCTION_SYNC && item->_instruction != CSYNC_INSTRUCTION_NEW;
|
||||
const auto isFileDownloadOrDirectory = item->_direction != SyncFileItem::Up || item->isDirectory();
|
||||
|
||||
qCInfo(lcDisco) << "Checking quota for item:" << item->_file
|
||||
<< "isTypeChange?" << isTypeChange
|
||||
<< "isUpdateMetadataOrRename?" << isUpdateMetadataOrRename
|
||||
<< "isFileDownloadOrDirectory?" << isFileDownloadOrDirectory
|
||||
<< "_dirItem?" << _dirItem
|
||||
<< "_dirParentItem?" << _dirParentItem
|
||||
<< "item->_size:" << item->_size
|
||||
<< "_folderQuota.bytesAvailable:" << _folderQuota.bytesAvailable
|
||||
<< "_folderQuota.bytesUsed:" << _folderQuota.bytesUsed;
|
||||
qCDebug(lcDisco) << "Checking quota for item:" << item->_file
|
||||
<< "isTypeChange?" << isTypeChange
|
||||
<< "isUpdateMetadataOrRename?" << isUpdateMetadataOrRename
|
||||
<< "isFileDownloadOrDirectory?" << isFileDownloadOrDirectory
|
||||
<< "_dirItem?" << _dirItem
|
||||
<< "_dirParentItem?" << _dirParentItem
|
||||
<< "item->_size:" << item->_size
|
||||
<< "_folderQuota.bytesAvailable:" << _folderQuota.bytesAvailable
|
||||
<< "_folderQuota.bytesUsed:" << _folderQuota.bytesUsed;
|
||||
|
||||
if (item->_size == 0 || isTypeChange || isFileDownloadOrDirectory || isUpdateMetadataOrRename) {
|
||||
qCInfo(lcDisco) << "Returning unlimited free space (-3) for item quota.";
|
||||
qCDebug(lcDisco) << "Returning unlimited free space (-3) for item quota.";
|
||||
return unlimitedFreeSpace;
|
||||
}
|
||||
|
||||
if (serverEntry == FolderQuota::ServerEntry::Valid) {
|
||||
qCInfo(lcDisco) << "Returning cached _folderQuota.bytesAvailable for item quota.";
|
||||
qCDebug(lcDisco) << "Returning cached _folderQuota.bytesAvailable for item quota.";
|
||||
return _folderQuota.bytesAvailable;
|
||||
}
|
||||
|
||||
if (!_dirItem) {
|
||||
qCInfo(lcDisco) << "Returning unlimited free space (-3) for item quota with no _dirItem.";
|
||||
qCDebug(lcDisco) << "Returning unlimited free space (-3) for item quota with no _dirItem.";
|
||||
return unlimitedFreeSpace;
|
||||
}
|
||||
|
||||
qCInfo(lcDisco) << "_dirItem->_folderQuota.bytesAvailable:" << _dirItem->_folderQuota.bytesAvailable;
|
||||
qCDebug(lcDisco) << "_dirItem->_folderQuota.bytesAvailable:" << _dirItem->_folderQuota.bytesAvailable;
|
||||
|
||||
SyncJournalFileRecord dirItemDbRecord;
|
||||
if (_discoveryData->_statedb->getFileRecord(_dirItem->_file, &dirItemDbRecord) && dirItemDbRecord.isValid()) {
|
||||
const auto dirDbBytesAvailable = dirItemDbRecord._folderQuota.bytesAvailable;
|
||||
qCInfo(lcDisco) << "Returning for item quota db value dirItemDbRecord._folderQuota.bytesAvailable" << dirDbBytesAvailable;
|
||||
qCDebug(lcDisco) << "Returning for item quota db value dirItemDbRecord._folderQuota.bytesAvailable" << dirDbBytesAvailable;
|
||||
return dirDbBytesAvailable;
|
||||
}
|
||||
|
||||
qCInfo(lcDisco) << "Returning _dirItem->_folderQuota.bytesAvailable for item quota.";
|
||||
qCDebug(lcDisco) << "Returning _dirItem->_folderQuota.bytesAvailable for item quota.";
|
||||
return _dirItem->_folderQuota.bytesAvailable;
|
||||
}
|
||||
|
||||
@ -2284,9 +2284,9 @@ DiscoverySingleDirectoryJob *ProcessDirectoryJob::startAsyncServerQuery()
|
||||
Q_ASSERT(_dirItem->_e2eEncryptionStatus != SyncFileItem::EncryptionStatus::NotEncrypted);
|
||||
_discoveryData->_anotherSyncNeeded = !alreadyDownloaded && serverJob->encryptedMetadataNeedUpdate();
|
||||
}
|
||||
qCInfo(lcDisco) << "serverJob has finished for folder:" << _dirItem->_file << " and it has _isFileDropDetected:" << _dirItem->_isFileDropDetected
|
||||
<< "with quota bytesUSed:" << _dirItem->_folderQuota.bytesUsed
|
||||
<< "bytesAvailable:" << _dirItem->_folderQuota.bytesAvailable;
|
||||
qCDebug(lcDisco) << "serverJob has finished for folder:" << _dirItem->_file << " and it has _isFileDropDetected:" << _dirItem->_isFileDropDetected
|
||||
<< "with quota bytesUsed:" << _dirItem->_folderQuota.bytesUsed
|
||||
<< "bytesAvailable:" << _dirItem->_folderQuota.bytesAvailable;
|
||||
}
|
||||
_discoveryData->_currentlyActiveJobs--;
|
||||
_pendingAsyncJobs--;
|
||||
@ -2328,9 +2328,9 @@ DiscoverySingleDirectoryJob *ProcessDirectoryJob::startAsyncServerQuery()
|
||||
|
||||
void ProcessDirectoryJob::setFolderQuota(const FolderQuota &folderQuota)
|
||||
{
|
||||
qCInfo(lcDisco) << "Setting quota for folder" << _discoveryData->_localDir + _currentFolder._local
|
||||
<< "bytes used:" << folderQuota.bytesUsed
|
||||
<< "bytes available:" << folderQuota.bytesAvailable;
|
||||
qCDebug(lcDisco) << "Setting quota for folder" << _discoveryData->_localDir + _currentFolder._local
|
||||
<< "bytes used:" << folderQuota.bytesUsed
|
||||
<< "bytes available:" << folderQuota.bytesAvailable;
|
||||
_folderQuota.bytesUsed = folderQuota.bytesUsed;
|
||||
_folderQuota.bytesAvailable = folderQuota.bytesAvailable;
|
||||
|
||||
|
||||
@ -520,9 +520,10 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(const QString &fi
|
||||
quotaValue = static_cast<int64_t>(map.value(FolderQuota::availableBytesC).toDouble(&ok));
|
||||
_folderQuota.bytesAvailable = ok ? quotaValue : -1;
|
||||
|
||||
qCWarning(lcDiscovery) << "Setting quota for" << file
|
||||
<< "bytesUsed:" << _folderQuota.bytesUsed
|
||||
<< "bytesAvailable:" << _folderQuota.bytesAvailable;
|
||||
qCDebug(lcDiscovery) << "Setting quota for" << file
|
||||
<< "bytesUsed:" << _folderQuota.bytesUsed
|
||||
<< "bytesAvailable:" << _folderQuota.bytesAvailable
|
||||
<< "ok:" << ok;
|
||||
emit setfolderQuota(_folderQuota);
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user