From 590e8efcb49194dc3cb22cbd5b32944eee6ef51d Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 24 Jan 2020 01:08:21 +0300 Subject: [PATCH] Improve logging. GitOrigin-RevId: 1cef0e92ceb9cec005ebb693303d8fd808338771 --- td/telegram/StickersManager.hpp | 10 +++++----- td/telegram/Td.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/telegram/StickersManager.hpp b/td/telegram/StickersManager.hpp index 2070a9c18..f56cf529c 100644 --- a/td/telegram/StickersManager.hpp +++ b/td/telegram/StickersManager.hpp @@ -229,25 +229,25 @@ void StickersManager::parse_sticker_set(StickerSet *sticker_set, ParserT &parser sticker_set->is_masks = is_masks; sticker_set->is_animated = is_animated; - short_name_to_sticker_set_id_.emplace(clean_username(sticker_set->short_name), StickerSetId(sticker_set_id)); + short_name_to_sticker_set_id_.emplace(clean_username(sticker_set->short_name), sticker_set->id); on_update_sticker_set(sticker_set, is_installed, is_archived, false, true); } else { if (sticker_set->title != title) { - LOG(INFO) << "Title of " << sticker_set_id << " has changed"; + LOG(INFO) << "Title of " << sticker_set->id << " has changed"; } if (sticker_set->short_name != short_name) { - LOG(ERROR) << "Short name of " << sticker_set_id << " has changed from \"" << short_name << "\" to \"" + LOG(ERROR) << "Short name of " << sticker_set->id << " has changed from \"" << short_name << "\" to \"" << sticker_set->short_name << "\""; } if (sticker_set->sticker_count != sticker_count || sticker_set->hash != hash) { sticker_set->is_loaded = false; } if (sticker_set->is_animated != is_animated) { - LOG(ERROR) << "Is animated of " << sticker_set_id << " has changed from \"" << is_animated << "\" to \"" + LOG(ERROR) << "Is animated of " << sticker_set->id << " has changed from \"" << is_animated << "\" to \"" << sticker_set->is_animated << "\""; } if (sticker_set->is_masks != is_masks) { - LOG(ERROR) << "Is masks of " << sticker_set_id << " has changed from \"" << is_masks << "\" to \"" + LOG(ERROR) << "Is masks of " << sticker_set->id << " has changed from \"" << is_masks << "\" to \"" << sticker_set->is_masks << "\""; } } diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 19f5f1677..076316bd1 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -4407,7 +4407,7 @@ Status Td::init(DbKey key) { // that RequestKey was already sent. // // 3. During replay of binlog some queries may be sent to other actors. They shouldn't process such events before all - // their binlog events are processed. So actor may receive some old queries. It must be in it's actual state in + // their binlog events are processed. So actor may receive some old queries. It must be in its actual state in // orded to handle them properly. // // -- Use send_closure_later, so actors don't even start process binlog events, before all binlog events are sent