mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-01 17:32:25 +00:00
Some changes
This commit is contained in:
parent
5fcd3eb38e
commit
b3ea1a9da7
@ -79,6 +79,7 @@ namespace Logs{
|
|||||||
Mercenaries,
|
Mercenaries,
|
||||||
QuestDebug,
|
QuestDebug,
|
||||||
Server_Client_Packet,
|
Server_Client_Packet,
|
||||||
|
Client_Server_Packet_Unhandled,
|
||||||
MaxCategoryID /* Don't Remove this*/
|
MaxCategoryID /* Don't Remove this*/
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -124,6 +125,7 @@ namespace Logs{
|
|||||||
"Mercenaries",
|
"Mercenaries",
|
||||||
"Quest Debug",
|
"Quest Debug",
|
||||||
"Packet :: Server -> Client",
|
"Packet :: Server -> Client",
|
||||||
|
"Packet :: Client -> Server Unhandled",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -462,17 +462,8 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
|||||||
args.push_back(const_cast<EQApplicationPacket*>(app));
|
args.push_back(const_cast<EQApplicationPacket*>(app));
|
||||||
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
||||||
|
|
||||||
char buffer[64];
|
if (Log.log_settings[Logs::Client_Server_Packet_Unhandled].is_category_enabled == 1)
|
||||||
Log.Out(Logs::Detail, Logs::Client_Server_Packet, "Unhandled incoming opcode: %s - 0x%04x", OpcodeManager::EmuToName(app->GetOpcode()), app->GetOpcode());
|
Log.Out(Logs::General, Logs::Client_Server_Packet_Unhandled, "Incoming OpCode :: [%s - 0x%04x] [Size: %u] \n%s", OpcodeManager::EmuToName(app->GetOpcode()), app->GetOpcode(), app->Size(), DumpPacketToString(app).c_str());
|
||||||
if (Log.log_settings[Logs::Client_Server_Packet].log_to_console > 0){
|
|
||||||
app->build_header_dump(buffer);
|
|
||||||
if (app->size < 1000)
|
|
||||||
DumpPacket(app, app->size);
|
|
||||||
else{
|
|
||||||
std::cout << "Dump limited to 1000 characters:\n";
|
|
||||||
DumpPacket(app, 1000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user