Skip to content

Commit

Permalink
Add more logging in CHECK.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: bdf8e0569105ef2033af8a4ac3bd2c82867dbc1f
  • Loading branch information
levlam committed Jun 3, 2020
1 parent 1e6a2fa commit 44c141a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30684,7 +30684,11 @@ void MessagesManager::update_list_last_dialog_date(DialogList &list, bool only_u
if (list.list_last_dialog_date_ != new_last_dialog_date) {
auto old_dialog_total_count = get_dialog_total_count(list);
auto old_last_dialog_date = list.list_last_dialog_date_;
CHECK(old_last_dialog_date < new_last_dialog_date);
LOG_CHECK(old_last_dialog_date < new_last_dialog_date)
<< list.dialog_list_id << " " << old_last_dialog_date << " " << list.last_pinned_dialog_date_ << " "
<< get_dialog_folder(FolderId::main())->folder_last_dialog_date_ << " "
<< get_dialog_folder(FolderId::archive())->folder_last_dialog_date_ << " " << list.load_list_queries_.size()
<< " " << list.pinned_dialogs_;
list.list_last_dialog_date_ = new_last_dialog_date;

if (only_update) {
Expand Down

0 comments on commit 44c141a

Please sign in to comment.