diff options
| author | levlam <levlam@telegram.org> | 2024-05-09 19:06:31 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-05-09 19:06:31 +0300 |
| commit | 1324e94c34554061bbd86ee1990b2b58f71e99ca (patch) | |
| tree | bd7adc02e5c89d1a92bea3ffecc042ac1f427e76 /td/telegram/ReactionManager.cpp | |
| parent | d490e9a1227861e4e9be4415839124e852e3c3d8 (diff) | |
Log size of loaded message effects and reactions.
Diffstat (limited to 'td/telegram/ReactionManager.cpp')
| -rw-r--r-- | td/telegram/ReactionManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/ReactionManager.cpp b/td/telegram/ReactionManager.cpp index 51566c638..a2f9cd0f5 100644 --- a/td/telegram/ReactionManager.cpp +++ b/td/telegram/ReactionManager.cpp @@ -771,12 +771,12 @@ void ReactionManager::load_reactions() { } are_reactions_loaded_from_database_ = true; - LOG(INFO) << "Loading available reactions"; string reactions = G()->td_db()->get_binlog_pmc()->get("reactions"); if (reactions.empty()) { return reload_reactions(); } + LOG(INFO) << "Loaded available reactions of size " << reactions.size(); Reactions new_reactions; new_reactions.are_being_reloaded_ = reactions_.are_being_reloaded_; auto status = log_event_parse(new_reactions, reactions); @@ -1250,11 +1250,11 @@ void ReactionManager::load_message_effects() { } are_message_effects_loaded_from_database_ = true; - LOG(INFO) << "Loading message effects"; string message_effects = G()->td_db()->get_binlog_pmc()->get("message_effects"); if (message_effects.empty()) { return reload_message_effects(); } + LOG(INFO) << "Loaded message effects of size " << message_effects.size(); Effects new_message_effects; new_message_effects.are_being_reloaded_ = message_effects_.are_being_reloaded_; |
