From b1a1b332c7162ec7edc125970fbafe7a27beca06 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 26 Dec 2018 23:58:18 +0300 Subject: [PATCH] Add config_recoverer log tag. GitOrigin-RevId: f0d757f9bc5079a47c5896322c4b7512a9451492 --- td/telegram/ConfigManager.cpp | 2 +- td/telegram/ConfigManager.h | 2 ++ td/telegram/Logging.cpp | 11 ++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index 40b326cd..ff395822 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -50,7 +50,7 @@ namespace td { -static int VERBOSITY_NAME(config_recoverer) = VERBOSITY_NAME(INFO); +int VERBOSITY_NAME(config_recoverer) = VERBOSITY_NAME(INFO); Result decode_config(Slice input) { static auto rsa = td::RSA::from_pem( diff --git a/td/telegram/ConfigManager.h b/td/telegram/ConfigManager.h index 0548839f..f0cccb3d 100644 --- a/td/telegram/ConfigManager.h +++ b/td/telegram/ConfigManager.h @@ -22,6 +22,8 @@ namespace td { +extern int VERBOSITY_NAME(config_recoverer); + class ConfigShared; using SimpleConfig = tl_object_ptr; diff --git a/td/telegram/Logging.cpp b/td/telegram/Logging.cpp index 32cb0d66..906362a8 100644 --- a/td/telegram/Logging.cpp +++ b/td/telegram/Logging.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/Logging.h" +#include "td/telegram/ConfigManager.h" #include "td/telegram/files/FileGcWorker.h" #include "td/telegram/files/FileManager.h" #include "td/telegram/net/ConnectionCreator.h" @@ -34,11 +35,11 @@ static NullLog null_log; #define ADD_TAG(tag) \ { #tag, &VERBOSITY_NAME(tag) } static const std::map log_tags{ - ADD_TAG(td_init), ADD_TAG(update_file), ADD_TAG(connections), ADD_TAG(binlog), - ADD_TAG(proxy), ADD_TAG(net_query), ADD_TAG(td_requests), ADD_TAG(dc), - ADD_TAG(files), ADD_TAG(mtproto), ADD_TAG(raw_mtproto), ADD_TAG(fd), - ADD_TAG(actor), ADD_TAG(buffer), ADD_TAG(sqlite), ADD_TAG(notifications), - ADD_TAG(get_difference), ADD_TAG(file_gc)}; + ADD_TAG(td_init), ADD_TAG(update_file), ADD_TAG(connections), ADD_TAG(binlog), + ADD_TAG(proxy), ADD_TAG(net_query), ADD_TAG(td_requests), ADD_TAG(dc), + ADD_TAG(files), ADD_TAG(mtproto), ADD_TAG(raw_mtproto), ADD_TAG(fd), + ADD_TAG(actor), ADD_TAG(buffer), ADD_TAG(sqlite), ADD_TAG(notifications), + ADD_TAG(get_difference), ADD_TAG(file_gc), ADD_TAG(config_recoverer)}; #undef ADD_TAG Status Logging::set_current_stream(td_api::object_ptr stream) {