diff --git a/td/mtproto/RawConnection.cpp b/td/mtproto/RawConnection.cpp index ad032c5de..aef340e55 100644 --- a/td/mtproto/RawConnection.cpp +++ b/td/mtproto/RawConnection.cpp @@ -39,7 +39,7 @@ void RawConnection::send_crypto(const Storer &storer, int64 session_id, int64 sa if (tmp.second) { use_quick_ack = true; } else { - LOG(ERROR) << "Quick ack collision " << tag("quick_ack", info.message_ack); + LOG(ERROR) << "Quick ack " << info.message_ack << " collision"; } } @@ -130,20 +130,20 @@ Status RawConnection::on_read_mtproto_error(int32 error_code) { if (stats_callback_) { stats_callback_->on_mtproto_error(); } - return Status::Error(500, PSLICE() << "Mtproto error: " << error_code); + return Status::Error(500, PSLICE() << "MTProto error: " << error_code); } if (error_code == -404) { - return Status::Error(-404, PSLICE() << "Mtproto error: " << error_code); + return Status::Error(-404, PSLICE() << "MTProto error: " << error_code); } - return Status::Error(PSLICE() << "Mtproto error: " << error_code); + return Status::Error(PSLICE() << "MTProto error: " << error_code); } Status RawConnection::on_quick_ack(uint32 quick_ack, Callback &callback) { auto it = quick_ack_to_token_.find(quick_ack); if (it == quick_ack_to_token_.end()) { - LOG(WARNING) << Status::Error(PSLICE() << "Unknown " << tag("quick_ack", quick_ack)); + LOG(WARNING) << Status::Error(PSLICE() << "Unknown quick_ack " << quick_ack); return Status::OK(); - // TODO: return Status::Error(PSLICE() << "Unknown " << tag("quick_ack", quick_ack)); + // TODO: return Status::Error(PSLICE() << "Unknown quick_ack " << quick_ack); } auto token = it->second; quick_ack_to_token_.erase(it); diff --git a/td/telegram/SecretChatActor.cpp b/td/telegram/SecretChatActor.cpp index 8d2ed44ee..f116bc881 100644 --- a/td/telegram/SecretChatActor.cpp +++ b/td/telegram/SecretChatActor.cpp @@ -910,7 +910,7 @@ Status SecretChatActor::do_inbound_message_encrypted(unique_ptr= MTPROTO_2_LAYER && mtproto_version < 2) { - return Status::Error(PSLICE() << "Mtproto 1.0 encryption is forbidden for this layer"); + return Status::Error(PSLICE() << "MTProto 1.0 encryption is forbidden for this layer"); } if (message_with_layer->in_seq_no_ < 0) { return Status::Error(PSLICE() << "Invalid seq_no: " << to_string(message_with_layer)); diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index c4f3f60a7..f228e3fe1 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -692,7 +692,7 @@ Result ConnectionCreator::find_connection(const Proxy &proxy, const IP << (info.use_http ? " over HTTP" : ""); if (proxy.use_mtproto_proxy()) { - extra.debug_str = PSTRING() << "Mtproto " << proxy_ip_address << extra.debug_str; + extra.debug_str = PSTRING() << "MTProto " << proxy_ip_address << extra.debug_str; LOG(INFO) << "Create: " << extra.debug_str; return SocketFd::open(proxy_ip_address);