From e35205eaf4c715f5bc6c136a2e67f00d2aa08981 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sun, 1 Feb 2015 02:13:47 -0600 Subject: [PATCH] Add Packet :: Server -> Client logging --- common/eq_stream.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/eq_stream.cpp b/common/eq_stream.cpp index ae36bba90..97c40c3c2 100644 --- a/common/eq_stream.cpp +++ b/common/eq_stream.cpp @@ -559,10 +559,8 @@ void EQStream::SendPacket(uint16 opcode, EQApplicationPacket *p) uint32 chunksize,used; uint32 length; - // 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()); + if (Log.log_settings[Logs::Server_Client_Packet].is_category_enabled == 1) + Log.Out(Logs::General, Logs::Server_Client_Packet, "[%s - 0x%04x] [Size: %u] \n %s", OpcodeManager::EmuToName(p->GetOpcode()), p->GetOpcode(), p->Size(), DumpPacketToString(p).c_str()); // Convert the EQApplicationPacket to 1 or more EQProtocolPackets