From fffe644aaab75fb3d2b41a9418c24dd4e78f3fe5 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Tue, 20 Nov 2018 13:09:52 +0400 Subject: [PATCH] Connections creation debug GitOrigin-RevId: 1f906a0c00464ff7bdfcfc41932b39733bab6780 --- td/telegram/cli.cpp | 3 +++ td/telegram/net/ConnectionCreator.cpp | 3 ++- td/telegram/net/Session.cpp | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 35c10287..6402ef6a 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -648,6 +648,9 @@ class CliClient final : public Actor { case td_api::updateFile::ID: on_get_file(*static_cast(result.get())->file_); break; + case td_api::updateConnectionState::ID: + LOG(WARNING) << to_string(result); + break; } } diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index 2080faf7..5b1566c8 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -1106,7 +1106,8 @@ void ConnectionCreator::client_add_connection(size_t hash, Resultdebug_str_; + LOG(INFO) << "connection_open_finish: " << name; info->connection = make_unique(mode, std::move(raw_connection), &auth_data_, DhCache::instance()); if (is_main_) {