Skip to content

Commit

Permalink
Merge pull request #6234 from nextcloud/strugee-patch-1
Browse files Browse the repository at this point in the history
Don't log notification successes as warnings
  • Loading branch information
mgallien authored Nov 21, 2023
2 parents f3663bb + 5c7fb58 commit 219823f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/tray/notificationhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool ServerNotificationHandler::startFetchNotifications()
void ServerNotificationHandler::slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode)
{
if (statusCode == successStatusCode) {
qCWarning(lcServerNotification) << "New Notification ETag Response Header received " << value;
qCInfo(lcServerNotification) << "New Notification ETag Response Header received " << value;
auto *account = qvariant_cast<AccountState *>(sender()->property(propertyAccountStateC));
account->setNotificationsEtagResponseHeader(value);
}
Expand All @@ -72,7 +72,7 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
}

if (statusCode == notModifiedStatusCode) {
qCWarning(lcServerNotification) << "Status code " << statusCode << " Not Modified - No new notifications.";
qCInfo(lcServerNotification) << "Status code " << statusCode << " Not Modified - No new notifications.";
deleteLater();
emit jobFinished();
return;
Expand Down

0 comments on commit 219823f

Please sign in to comment.