mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Chnage netcode logging check to use is_category_enabled instead of just checking for console
This commit is contained in:
parent
d9c47fcd41
commit
d75c632d73
@ -398,7 +398,7 @@ void ClearMappedOpcode(EmuOpcode op)
|
||||
// client methods
|
||||
int Client::HandlePacket(const EQApplicationPacket *app)
|
||||
{
|
||||
if(Log.log_settings[Logs::LogCategory::Netcode].log_to_console > 0) {
|
||||
if (Log.log_settings[Logs::LogCategory::Netcode].is_category_enabled == 1) {
|
||||
char buffer[64];
|
||||
app->build_header_dump(buffer);
|
||||
Log.Out(Logs::Detail, Logs::Client_Server_Packet, "Dispatch opcode: %s", buffer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user