From f2345d4fcc5e49f1483c9d84b6cade18524b84e4 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 23 Oct 2023 15:57:36 +0300 Subject: [PATCH] Remove redundant actor name from log messages. --- td/telegram/net/SessionMultiProxy.cpp | 8 ++++---- td/telegram/net/SessionProxy.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/td/telegram/net/SessionMultiProxy.cpp b/td/telegram/net/SessionMultiProxy.cpp index 854884aea..f8e6d768c 100644 --- a/td/telegram/net/SessionMultiProxy.cpp +++ b/td/telegram/net/SessionMultiProxy.cpp @@ -53,7 +53,7 @@ void SessionMultiProxy::send(NetQueryPtr query) { } void SessionMultiProxy::update_main_flag(bool is_main) { - LOG(INFO) << "Update " << get_name() << " is_main to " << is_main; + LOG(INFO) << "Update is_main to " << is_main; is_main_ = is_main; for (auto &session : sessions_) { send_closure(session.proxy, &SessionProxy::update_main_flag, is_main); @@ -88,7 +88,7 @@ void SessionMultiProxy::update_options(int32 session_count, bool use_pfs, bool n if (session_count_ > 100) { session_count_ = 100; } - LOG(INFO) << "Update " << get_name() << " session_count to " << session_count_; + LOG(INFO) << "Update session_count to " << session_count_; changed = true; } @@ -96,14 +96,14 @@ void SessionMultiProxy::update_options(int32 session_count, bool use_pfs, bool n bool old_pfs_flag = get_pfs_flag(); use_pfs_ = use_pfs; if (old_pfs_flag != get_pfs_flag()) { - LOG(INFO) << "Update " << get_name() << " use_pfs to " << use_pfs_; + LOG(INFO) << "Update use_pfs to " << use_pfs_; changed = true; } } if (need_destroy_auth_key) { need_destroy_auth_key_ = need_destroy_auth_key; - LOG(WARNING) << "Destroy auth key in " << get_name(); + LOG(WARNING) << "Destroy auth key"; } if (changed) { diff --git a/td/telegram/net/SessionProxy.cpp b/td/telegram/net/SessionProxy.cpp index 1a7889710..eb3158e24 100644 --- a/td/telegram/net/SessionProxy.cpp +++ b/td/telegram/net/SessionProxy.cpp @@ -166,7 +166,7 @@ void SessionProxy::update_main_flag(bool is_main) { if (is_main_ == is_main) { return; } - LOG(INFO) << "Update " << get_name() << " is_main to " << is_main; + LOG(INFO) << "Update is_main to " << is_main; is_main_ = is_main; close_session(); open_session();