Skip to content

Commit

Permalink
downgrade severity level of logs during propagation
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien authored and backportbot[bot] committed Oct 7, 2024
1 parent e97e03d commit b91c696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr
activity._fileAction = fileActionFromInstruction(item->_instruction);

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) {
activity._message = QObject::tr("Synced %1").arg(fileName);
Expand Down Expand Up @@ -839,7 +839,7 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr

_activityModel->addSyncFileItemToActivityList(activity);
} 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._id = -static_cast<int>(qHash(activity._subject + activity._message));
Expand Down Expand Up @@ -885,7 +885,7 @@ void User::slotItemCompleted(const QString &folder, const SyncFileItemPtr &item)
return;
}

qCWarning(lcActivity) << "Item " << item->_file << " retrieved resulted in " << item->_errorString;
qCDebug(lcActivity) << "Item " << item->_file << " retrieved resulted in " << item->_errorString;
processCompletedSyncItem(folderInstance, item);
}

Expand Down

0 comments on commit b91c696

Please sign in to comment.