Network: Log received packets at log level net=3

This commit is contained in:
Jonathan G Rennison
2021-05-14 19:34:15 +01:00
parent 66cac92028
commit e04218b528
6 changed files with 21 additions and 1 deletions

View File

@@ -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.