From 3cd9d6482faf3f6a970bab92826c895221b8c80e Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 May 2020 13:54:32 +0300 Subject: [PATCH] Log session_count only if it is more than 1. GitOrigin-RevId: e5018d2ce3ab363191e6bcb6798ce4f92741c2ee --- td/telegram/net/SessionMultiProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/net/SessionMultiProxy.cpp b/td/telegram/net/SessionMultiProxy.cpp index 81a9491c8..3243115b1 100644 --- a/td/telegram/net/SessionMultiProxy.cpp +++ b/td/telegram/net/SessionMultiProxy.cpp @@ -117,7 +117,7 @@ bool SessionMultiProxy::get_pfs_flag() const { void SessionMultiProxy::init() { sessions_generation_++; sessions_.clear(); - if (is_main_) { + if (is_main_ && session_count_ > 1) { LOG(WARNING) << tag("session_count", session_count_); } for (int32 i = 0; i < session_count_; i++) {