Network: Log received packets at log level net=3
This commit is contained in:
@@ -132,7 +132,7 @@ struct PacketWriter : SaveFilter {
|
||||
for (auto &p : this->packets) {
|
||||
if (p->GetPacketType() == PACKET_SERVER_MAP_DONE) last_packet = true;
|
||||
socket->SendPacket(std::move(p));
|
||||
|
||||
|
||||
}
|
||||
this->prepend_packets.clear();
|
||||
this->packets.clear();
|
||||
@@ -1588,6 +1588,11 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_MOVE(Packet *p)
|
||||
return NETWORK_RECV_STATUS_OKAY;
|
||||
}
|
||||
|
||||
std::string ServerNetworkGameSocketHandler::GetDebugInfo() const
|
||||
{
|
||||
return stdstr_fmt("status: %d", this->status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Package some generic company information into a packet.
|
||||
* @param p The packet that will contain the data.
|
||||
|
||||
Reference in New Issue
Block a user