From 0fa92bdb870fcf0dd6a02ca258b3eec0929397cf Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 25 Jan 2018 19:01:10 +0300 Subject: [PATCH] Improve log messages. GitOrigin-RevId: b33eacf1de0f88c6cc0a8208ab82099cd9e1be83 --- td/telegram/StickersManager.cpp | 7 ++++--- td/telegram/StickersManager.hpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 7699d12a..cddab69d 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -2203,11 +2203,12 @@ void StickersManager::on_load_sticker_set_from_database(int64 sticker_set_id, bo auto old_sticker_count = sticker_set->sticker_ids.size(); { - LOG_IF(ERROR, sticker_set->is_changed) - << "Sticker set " << sticker_set_id << " was changed before it is loaded from database"; + LOG_IF(ERROR, sticker_set->is_changed) << "Sticker set with" << (with_stickers ? "" : "out") << " stickers " + << sticker_set_id << " was changed before it is loaded from database"; LogEventParser parser(value); parse_sticker_set(sticker_set, parser); - LOG_IF(ERROR, sticker_set->is_changed) << "Sticker set " << sticker_set_id << " is changed"; + LOG_IF(ERROR, sticker_set->is_changed) + << "Sticker set with" << (with_stickers ? "" : "out") << " stickers " << sticker_set_id << " is changed"; parser.fetch_end(); parser.get_status().ensure(); } diff --git a/td/telegram/StickersManager.hpp b/td/telegram/StickersManager.hpp index 1232cec6..598c356c 100644 --- a/td/telegram/StickersManager.hpp +++ b/td/telegram/StickersManager.hpp @@ -159,7 +159,8 @@ void StickersManager::parse_sticker_set(StickerSet *sticker_set, T &parser) { parse(access_hash, parser); CHECK(sticker_set->id == sticker_set_id); if (sticker_set->access_hash != access_hash) { - LOG(ERROR) << "Sticker set " << sticker_set_id << " access hash has changed"; + LOG(ERROR) << "Sticker set " << sticker_set_id << " access hash has changed from " << access_hash << " to " + << sticker_set->access_hash; } if (sticker_set->is_inited) {