mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
downgrade severity level of logs during propagation
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
8ecf0e9faa
commit
f0f83b9984
1 changed files with 3 additions and 3 deletions
|
@ -804,7 +804,7 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
|
||||||
activity._fileAction = fileActionFromInstruction(item->_instruction);
|
activity._fileAction = fileActionFromInstruction(item->_instruction);
|
||||||
|
|
||||||
if (item->_status == SyncFileItem::NoStatus || item->_status == SyncFileItem::Success) {
|
if (item->_status == SyncFileItem::NoStatus || item->_status == SyncFileItem::Success) {
|
||||||
qCWarning(lcActivity) << "Item " << item->_file << " retrieved successfully.";
|
qCDebug(lcActivity) << "Item " << item->_file << " retrieved successfully.";
|
||||||
|
|
||||||
if (item->_direction != SyncFileItem::Up) {
|
if (item->_direction != SyncFileItem::Up) {
|
||||||
activity._message = QObject::tr("Synced %1").arg(fileName);
|
activity._message = QObject::tr("Synced %1").arg(fileName);
|
||||||
|
@ -839,7 +839,7 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
|
||||||
|
|
||||||
_activityModel->addSyncFileItemToActivityList(activity);
|
_activityModel->addSyncFileItemToActivityList(activity);
|
||||||
} else {
|
} else {
|
||||||
qCWarning(lcActivity) << "Item " << item->_file << " retrieved resulted in error " << item->_errorString;
|
qCInfo(lcActivity) << "Item " << item->_file << " retrieved resulted in error " << item->_errorString;
|
||||||
|
|
||||||
activity._subject = item->_errorString;
|
activity._subject = item->_errorString;
|
||||||
activity._id = -static_cast<int>(qHash(activity._subject + activity._message));
|
activity._id = -static_cast<int>(qHash(activity._subject + activity._message));
|
||||||
|
@ -885,7 +885,7 @@ void User::slotItemCompleted(const QString &folder, const SyncFileItemPtr &item)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qCWarning(lcActivity) << "Item " << item->_file << " retrieved resulted in " << item->_errorString;
|
qCDebug(lcActivity) << "Item " << item->_file << " retrieved resulted in " << item->_errorString;
|
||||||
processCompletedSyncItem(folderInstance, item);
|
processCompletedSyncItem(folderInstance, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue