Skip to content

Commit 22349cd

Browse files
committed
Improve logging.
1 parent 44bf6ce commit 22349cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

td/telegram/MessagesManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12254,7 +12254,7 @@ void MessagesManager::on_get_dialogs(FolderId folder_id, vector<tl_object_ptr<te
1225412254

1225512255
DialogDate max_dialog_date = MIN_DIALOG_DATE;
1225612256
size_t empty_message_count = 0;
12257-
for (auto &dialog : dialogs) {
12257+
for (const auto &dialog : dialogs) {
1225812258
// LOG(INFO) << to_string(dialog);
1225912259
DialogId dialog_id(dialog->peer_);
1226012260
bool has_pts = dialog->pts_ > 0;
@@ -12309,7 +12309,7 @@ void MessagesManager::on_get_dialogs(FolderId folder_id, vector<tl_object_ptr<te
1230912309
empty_message_count++;
1231012310
}
1231112311
} else {
12312-
LOG(ERROR) << "Receive " << last_message_id << " as last chat message";
12312+
LOG(ERROR) << "Receive " << last_message_id << " as last chat message in " << oneline(to_string(dialog));
1231312313
continue;
1231412314
}
1231512315
}

0 commit comments

Comments
 (0)