From 5d8f7569b6ba462975d3214119b952170b568463 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 25 Feb 2019 21:55:45 +0300 Subject: [PATCH] Add logging. GitOrigin-RevId: c58fb67d9332f83a9c39ac8f3b02dc25beb98629 --- td/telegram/LanguagePackManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/td/telegram/LanguagePackManager.cpp b/td/telegram/LanguagePackManager.cpp index c082f073e..487ea567c 100644 --- a/td/telegram/LanguagePackManager.cpp +++ b/td/telegram/LanguagePackManager.cpp @@ -516,7 +516,7 @@ LanguagePackManager::Language *LanguagePackManager::add_language(LanguageDatabas info.is_from_database_ = true; } if (need_drop_server) { - LOG(INFO) << "Drop ald server language pack info cache"; + LOG(INFO) << "Drop old server language pack info cache"; pack->pack_kv_.erase("!server"); } } @@ -535,6 +535,9 @@ LanguagePackManager::Language *LanguagePackManager::add_language(LanguageDatabas language->version_ = load_database_language_version(&language->kv_); language->key_count_ = load_database_language_key_count(&language->kv_); language->base_language_code_ = load_database_language_base_language_code(&language->kv_); + LOG(INFO) << "Loaded language " << language_code << " with version " << language->version_.load() + << ", key count " << language->key_count_.load() << " and base language " + << language->base_language_code_; } code_it = pack->languages_.emplace(language_code, std::move(language)).first; }