From 489337ecd9a48c7fd3fbc514878f39f3e580c5a3 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 13 Jul 2023 16:29:05 +0300 Subject: [PATCH] Add logging for story timeouts. --- td/telegram/StoryManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/StoryManager.cpp b/td/telegram/StoryManager.cpp index 54442b19e..1b6af4719 100644 --- a/td/telegram/StoryManager.cpp +++ b/td/telegram/StoryManager.cpp @@ -925,6 +925,8 @@ void StoryManager::on_story_expire_timeout(int64 story_global_id) { LOG(ERROR) << "Receive timeout for non-expired " << story_full_id; return on_story_changed(story_full_id, story, false, false); } + + LOG(INFO) << "Have expired " << story_full_id; auto owner_dialog_id = story_full_id.get_dialog_id(); if (!is_story_owned(owner_dialog_id) && story->content_ != nullptr && !story->is_pinned_) { // non-owned expired non-pinned stories are fully deleted @@ -958,6 +960,8 @@ void StoryManager::on_story_can_get_viewers_timeout(int64 story_global_id) { if (story == nullptr) { return; } + + LOG(INFO) << "Have expired viewers in " << story_full_id; if (can_get_story_viewers(story_full_id, story).is_ok()) { LOG(ERROR) << "Receive timeout for " << story_full_id << " with available viewers"; return on_story_changed(story_full_id, story, false, false);