Some more logging when updating messages.
This commit is contained in:
parent
085cc656d9
commit
f42956fe13
@ -220,6 +220,8 @@ int Feed::updateMessages(const QList<Message>& messages, bool error_during_obtai
|
||||
bool ok = true;
|
||||
|
||||
if (!messages.isEmpty()) {
|
||||
qDebug("There are some messages to be updated in DB.");
|
||||
|
||||
QString custom_id = customId();
|
||||
int account_id = getParentServiceRoot()->accountId();
|
||||
QSqlDatabase database = is_main_thread ?
|
||||
@ -239,6 +241,9 @@ int Feed::updateMessages(const QList<Message>& messages, bool error_during_obtai
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
qCritical("I skip saving of messages into DB, as we have error during their downloading indicated.");
|
||||
}
|
||||
|
||||
items_to_update.append(this);
|
||||
getParentServiceRoot()->itemChanged(items_to_update);
|
||||
|
Loading…
x
Reference in New Issue
Block a user