Network: Log sent packets at net=5
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user