From 50da604d659f9b96732b9e5407f0511d5a7243b9 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 22 Jul 2020 16:58:26 +0300 Subject: [PATCH] Improve log formatting. GitOrigin-RevId: f9b1c0ac431744c3e31a41d3db8823860f1921a1 --- td/telegram/Td.cpp | 106 ++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index e4dfca765..2fa0240f0 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -3796,41 +3796,41 @@ void Td::dec_actor_refcnt() { LOG(WARNING) << "ON_ACTORS_CLOSED"; Timer timer; animations_manager_.reset(); - LOG(DEBUG) << "AnimationsManager was cleared " << timer; + LOG(DEBUG) << "AnimationsManager was cleared" << timer; audios_manager_.reset(); - LOG(DEBUG) << "AudiosManager was cleared " << timer; + LOG(DEBUG) << "AudiosManager was cleared" << timer; auth_manager_.reset(); - LOG(DEBUG) << "AuthManager was cleared " << timer; + LOG(DEBUG) << "AuthManager was cleared" << timer; background_manager_.reset(); - LOG(DEBUG) << "BackgroundManager was cleared " << timer; + LOG(DEBUG) << "BackgroundManager was cleared" << timer; contacts_manager_.reset(); - LOG(DEBUG) << "ContactsManager was cleared " << timer; + LOG(DEBUG) << "ContactsManager was cleared" << timer; documents_manager_.reset(); - LOG(DEBUG) << "DocumentsManager was cleared " << timer; + LOG(DEBUG) << "DocumentsManager was cleared" << timer; file_manager_.reset(); - LOG(DEBUG) << "FileManager was cleared " << timer; + LOG(DEBUG) << "FileManager was cleared" << timer; file_reference_manager_.reset(); - LOG(DEBUG) << "FileReferenceManager was cleared " << timer; + LOG(DEBUG) << "FileReferenceManager was cleared" << timer; inline_queries_manager_.reset(); - LOG(DEBUG) << "InlineQueriesManager was cleared " << timer; + LOG(DEBUG) << "InlineQueriesManager was cleared" << timer; messages_manager_.reset(); - LOG(DEBUG) << "MessagesManager was cleared " << timer; + LOG(DEBUG) << "MessagesManager was cleared" << timer; notification_manager_.reset(); - LOG(DEBUG) << "NotificationManager was cleared " << timer; + LOG(DEBUG) << "NotificationManager was cleared" << timer; poll_manager_.reset(); - LOG(DEBUG) << "PollManager was cleared " << timer; + LOG(DEBUG) << "PollManager was cleared" << timer; stickers_manager_.reset(); - LOG(DEBUG) << "StickersManager was cleared " << timer; + LOG(DEBUG) << "StickersManager was cleared" << timer; updates_manager_.reset(); - LOG(DEBUG) << "UpdatesManager was cleared " << timer; + LOG(DEBUG) << "UpdatesManager was cleared" << timer; video_notes_manager_.reset(); - LOG(DEBUG) << "VideoNotesManager was cleared " << timer; + LOG(DEBUG) << "VideoNotesManager was cleared" << timer; videos_manager_.reset(); - LOG(DEBUG) << "VideosManager was cleared " << timer; + LOG(DEBUG) << "VideosManager was cleared" << timer; voice_notes_manager_.reset(); - LOG(DEBUG) << "VoiceNotesManager was cleared " << timer; + LOG(DEBUG) << "VoiceNotesManager was cleared" << timer; web_pages_manager_.reset(); - LOG(DEBUG) << "WebPagesManager was cleared " << timer; + LOG(DEBUG) << "WebPagesManager was cleared" << timer; Promise<> promise = PromiseCreator::lambda([actor_id = create_reference()](Unit) mutable { actor_id.reset(); }); G()->set_shared_config(nullptr); @@ -3922,15 +3922,15 @@ void Td::clear() { notification_manager_->flush_all_notifications(); } } - LOG(DEBUG) << "Options was cleared " << timer; + LOG(DEBUG) << "Options was cleared" << timer; G()->net_query_creator().stop_check(); clear_handlers(); - LOG(DEBUG) << "Handlers was cleared " << timer; + LOG(DEBUG) << "Handlers was cleared" << timer; G()->net_query_dispatcher().stop(); - LOG(DEBUG) << "NetQueryDispatcher was stopped " << timer; + LOG(DEBUG) << "NetQueryDispatcher was stopped" << timer; state_manager_.reset(); - LOG(DEBUG) << "StateManager was cleared " << timer; + LOG(DEBUG) << "StateManager was cleared" << timer; clear_requests(); if (is_online_) { is_online_ = false; @@ -3939,72 +3939,72 @@ void Td::clear() { alarm_timeout_.cancel_timeout(PING_SERVER_ALARM_ID); alarm_timeout_.cancel_timeout(TERMS_OF_SERVICE_ALARM_ID); alarm_timeout_.cancel_timeout(PROMO_DATA_ALARM_ID); - LOG(DEBUG) << "Requests was answered " << timer; + LOG(DEBUG) << "Requests was answered" << timer; // close all pure actors call_manager_.reset(); - LOG(DEBUG) << "CallManager was cleared " << timer; + LOG(DEBUG) << "CallManager was cleared" << timer; change_phone_number_manager_.reset(); - LOG(DEBUG) << "ChangePhoneNumberManager was cleared " << timer; + LOG(DEBUG) << "ChangePhoneNumberManager was cleared" << timer; config_manager_.reset(); - LOG(DEBUG) << "ConfigManager was cleared " << timer; + LOG(DEBUG) << "ConfigManager was cleared" << timer; confirm_phone_number_manager_.reset(); - LOG(DEBUG) << "ConfirmPhoneNumberManager was cleared " << timer; + LOG(DEBUG) << "ConfirmPhoneNumberManager was cleared" << timer; device_token_manager_.reset(); - LOG(DEBUG) << "DeviceTokenManager was cleared " << timer; + LOG(DEBUG) << "DeviceTokenManager was cleared" << timer; hashtag_hints_.reset(); - LOG(DEBUG) << "HashtagHints was cleared " << timer; + LOG(DEBUG) << "HashtagHints was cleared" << timer; language_pack_manager_.reset(); - LOG(DEBUG) << "LanguagePackManager was cleared " << timer; + LOG(DEBUG) << "LanguagePackManager was cleared" << timer; net_stats_manager_.reset(); - LOG(DEBUG) << "NetStatsManager was cleared " << timer; + LOG(DEBUG) << "NetStatsManager was cleared" << timer; password_manager_.reset(); - LOG(DEBUG) << "PasswordManager was cleared " << timer; + LOG(DEBUG) << "PasswordManager was cleared" << timer; privacy_manager_.reset(); - LOG(DEBUG) << "PrivacyManager was cleared " << timer; + LOG(DEBUG) << "PrivacyManager was cleared" << timer; secure_manager_.reset(); - LOG(DEBUG) << "SecureManager was cleared " << timer; + LOG(DEBUG) << "SecureManager was cleared" << timer; secret_chats_manager_.reset(); - LOG(DEBUG) << "SecretChatsManager was cleared " << timer; + LOG(DEBUG) << "SecretChatsManager was cleared" << timer; storage_manager_.reset(); - LOG(DEBUG) << "StorageManager was cleared " << timer; + LOG(DEBUG) << "StorageManager was cleared" << timer; top_dialog_manager_.reset(); - LOG(DEBUG) << "TopDialogManager was cleared " << timer; + LOG(DEBUG) << "TopDialogManager was cleared" << timer; verify_phone_number_manager_.reset(); - LOG(DEBUG) << "VerifyPhoneNumberManager was cleared " << timer; + LOG(DEBUG) << "VerifyPhoneNumberManager was cleared" << timer; G()->set_connection_creator(ActorOwn()); - LOG(DEBUG) << "ConnectionCreator was cleared " << timer; + LOG(DEBUG) << "ConnectionCreator was cleared" << timer; G()->set_temp_auth_key_watchdog(ActorOwn()); - LOG(DEBUG) << "TempAuthKeyWatchdog was cleared " << timer; + LOG(DEBUG) << "TempAuthKeyWatchdog was cleared" << timer; // clear actors which are unique pointers animations_manager_actor_.reset(); - LOG(DEBUG) << "AnimationsManager actor was cleared " << timer; + LOG(DEBUG) << "AnimationsManager actor was cleared" << timer; auth_manager_actor_.reset(); - LOG(DEBUG) << "AuthManager actor was cleared " << timer; + LOG(DEBUG) << "AuthManager actor was cleared" << timer; background_manager_actor_.reset(); - LOG(DEBUG) << "BackgroundManager actor was cleared " << timer; + LOG(DEBUG) << "BackgroundManager actor was cleared" << timer; contacts_manager_actor_.reset(); - LOG(DEBUG) << "ContactsManager actor was cleared " << timer; + LOG(DEBUG) << "ContactsManager actor was cleared" << timer; file_manager_actor_.reset(); - LOG(DEBUG) << "FileManager actor was cleared " << timer; + LOG(DEBUG) << "FileManager actor was cleared" << timer; file_reference_manager_actor_.reset(); - LOG(DEBUG) << "FileReferenceManager actor was cleared " << timer; + LOG(DEBUG) << "FileReferenceManager actor was cleared" << timer; inline_queries_manager_actor_.reset(); - LOG(DEBUG) << "InlineQueriesManager actor was cleared " << timer; + LOG(DEBUG) << "InlineQueriesManager actor was cleared" << timer; messages_manager_actor_.reset(); // TODO: Stop silent - LOG(DEBUG) << "MessagesManager actor was cleared " << timer; + LOG(DEBUG) << "MessagesManager actor was cleared" << timer; notification_manager_actor_.reset(); - LOG(DEBUG) << "NotificationManager actor was cleared " << timer; + LOG(DEBUG) << "NotificationManager actor was cleared" << timer; poll_manager_actor_.reset(); - LOG(DEBUG) << "PollManager actor was cleared " << timer; + LOG(DEBUG) << "PollManager actor was cleared" << timer; stickers_manager_actor_.reset(); - LOG(DEBUG) << "StickersManager actor was cleared " << timer; + LOG(DEBUG) << "StickersManager actor was cleared" << timer; updates_manager_actor_.reset(); - LOG(DEBUG) << "UpdatesManager actor was cleared " << timer; + LOG(DEBUG) << "UpdatesManager actor was cleared" << timer; web_pages_manager_actor_.reset(); - LOG(DEBUG) << "WebPagesManager actor was cleared " << timer; + LOG(DEBUG) << "WebPagesManager actor was cleared" << timer; } void Td::close() {