From cb421294bbab7e4791862d2091a002efcf94d667 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 12 Jul 2021 18:24:31 +0100 Subject: [PATCH] Network: Log sent packets at net=5 --- src/network/core/tcp.cpp | 2 +- src/network/core/tcp_game.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp index 6ec6cccce1..62f4e7c75a 100644 --- a/src/network/core/tcp.cpp +++ b/src/network/core/tcp.cpp @@ -134,7 +134,7 @@ SendPacketsState NetworkTCPSocketHandler::SendPackets(bool closing_down) /* Is this packet sent? */ if (p->RemainingBytesToTransfer() == 0) { /* Go to the next packet */ - if (_debug_net_level >= 3) this->LogSentPacket(*p); + if (_debug_net_level >= 5) this->LogSentPacket(*p); this->packet_queue.pop_front(); } else { return SPS_PARTLY_SENT; diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp index 38d52b3753..9acb166885 100644 --- a/src/network/core/tcp_game.cpp +++ b/src/network/core/tcp_game.cpp @@ -275,5 +275,5 @@ std::string NetworkGameSocketHandler::GetDebugInfo() const { return ""; } void NetworkGameSocketHandler::LogSentPacket(const Packet &pkt) { PacketGameType type = (PacketGameType)pkt.GetPacketType(); - DEBUG(net, 3, "[tcp/game] sent packet type %d (%s) to client %d, %s", type, GetPacketGameTypeName(type), this->client_id, this->GetDebugInfo().c_str()); + DEBUG(net, 5, "[tcp/game] sent packet type %d (%s) to client %d, %s", type, GetPacketGameTypeName(type), this->client_id, this->GetDebugInfo().c_str()); }