Network: Log sent packets at net=5

This commit is contained in:
Jonathan G Rennison
2021-07-12 18:24:31 +01:00
parent b29a661787
commit cb421294bb
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ SendPacketsState NetworkTCPSocketHandler::SendPackets(bool closing_down)
/* Is this packet sent? */ /* Is this packet sent? */
if (p->RemainingBytesToTransfer() == 0) { if (p->RemainingBytesToTransfer() == 0) {
/* Go to the next packet */ /* 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(); this->packet_queue.pop_front();
} else { } else {
return SPS_PARTLY_SENT; return SPS_PARTLY_SENT;

View File

@@ -275,5 +275,5 @@ std::string NetworkGameSocketHandler::GetDebugInfo() const { return ""; }
void NetworkGameSocketHandler::LogSentPacket(const Packet &pkt) void NetworkGameSocketHandler::LogSentPacket(const Packet &pkt)
{ {
PacketGameType type = (PacketGameType)pkt.GetPacketType(); 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());
} }