Chnage netcode logging check to use is_category_enabled instead of just checking for console

This commit is contained in:
Akkadius 2015-02-01 02:10:18 -06:00
parent d9c47fcd41
commit d75c632d73

View File

@ -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);