From 562af8b4f6a95f7a9570d2c02cca2f05b7cdf0d2 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 22 Jul 2021 18:43:34 +0300 Subject: [PATCH] Add more logging in unload_dialog. --- td/telegram/MessagesManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 0d6d1c5d1..f2561efc3 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -10863,12 +10863,14 @@ void MessagesManager::unload_dialog(DialogId dialog_id) { CHECK(d != nullptr); if (!d->has_unload_timeout) { + LOG(INFO) << "Don't need to unload " << dialog_id; // possible right after the dialog was opened return; } if (!is_message_unload_enabled()) { // just in case + LOG(INFO) << "Message unload is disabled in " << dialog_id; d->has_unload_timeout = false; return; }