diff --git a/common/eq_stream.cpp b/common/eq_stream.cpp index 506be72d1..ae36bba90 100644 --- a/common/eq_stream.cpp +++ b/common/eq_stream.cpp @@ -561,6 +561,9 @@ void EQStream::SendPacket(uint16 opcode, EQApplicationPacket *p) // std::cout << "[Server -> Client] " << StringFormat("[%s - 0x%04x] [Size: %u]", OpcodeManager::EmuToName(p->GetOpcode()), p->GetOpcode(), p->Size()) << std::endl; // DumpPacket(p); + if (Log.log_settings[Logs::Client_Server_Packet].is_category_enabled == 1) + Log.Out(Logs::General, Logs::Client_Server_Packet, "[%s - 0x%04x] [Size: %u] \n %s", OpcodeManager::EmuToName(app->GetOpcode()), app->GetOpcode(), app->Size(), DumpPacketToString(app).c_str()); + // Convert the EQApplicationPacket to 1 or more EQProtocolPackets if (p->size>(MaxLen-8)) { // proto-op(2), seq(2), app-op(2) ... data ... crc(2) diff --git a/common/eqemu_logsys.h b/common/eqemu_logsys.h index a29b163c9..8c2d4cbe2 100644 --- a/common/eqemu_logsys.h +++ b/common/eqemu_logsys.h @@ -78,6 +78,7 @@ namespace Logs{ MySQLQuery, Mercenaries, QuestDebug, + Server_Client_Packet, MaxCategoryID /* Don't Remove this*/ }; @@ -122,6 +123,7 @@ namespace Logs{ "MySQL Query", "Mercenaries", "Quest Debug", + "Packet :: Server -> Client", }; }