Don't log notification successes as warnings

Signed-off-by: AJ Jordan <alex@strugee.net>
This commit is contained in:
AJ Jordan 2023-11-20 23:49:32 -05:00 committed by GitHub
parent f3663bbbce
commit 5c7fb58919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
@ -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;