diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index dba699968..8cd0dbf32 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -1093,7 +1093,9 @@ void Session::create_gen_auth_key_actor(HandshakeId handshake_id) { std::make_unique(DhCache::instance(), shared_auth_data_->public_rsa_key()), PromiseCreator::lambda([self = actor_id(this)](Result> r_connection) { if (r_connection.is_error()) { - LOG_IF(WARNING, r_connection.error().code() != 1) << r_connection.error(); + if (r_connection.error().code() != 1) { + LOG(WARNING) << "Failed to open connection: " << r_connection.error(); + } return; } send_closure(self, &Session::connection_add, r_connection.move_as_ok());