Better warning.

GitOrigin-RevId: dc260c72591e789431b23f9855232672d27daf5d
This commit is contained in:
levlam 2018-06-05 03:23:48 +03:00
parent fa065a77aa
commit dbe869e70c

View File

@ -1093,7 +1093,9 @@ void Session::create_gen_auth_key_actor(HandshakeId handshake_id) {
std::make_unique<AuthKeyHandshakeContext>(DhCache::instance(), shared_auth_data_->public_rsa_key()),
PromiseCreator::lambda([self = actor_id(this)](Result<std::unique_ptr<mtproto::RawConnection>> 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());