mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-28 03:12:28 +00:00
Add opcode name lookup on unhandled client opcode log message
This commit is contained in:
parent
0b687e4779
commit
126eca2ad6
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "../common/debug.h"
|
#include "../common/debug.h"
|
||||||
#include "../common/eqemu_logsys.h"
|
#include "../common/eqemu_logsys.h"
|
||||||
|
#include "../common/opcodemgr.h"
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -459,7 +460,7 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
|||||||
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
||||||
|
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Client_Server_Packet, "Unhandled incoming opcode: 0x%04x", app->GetOpcode());
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Client_Server_Packet, "Unhandled incoming opcode: %s - 0x%04x", OpcodeManager::EmuToName(app->GetOpcode()), app->GetOpcode());
|
||||||
if (logger.log_settings[EQEmuLogSys::Client_Server_Packet].log_to_console > 0){
|
if (logger.log_settings[EQEmuLogSys::Client_Server_Packet].log_to_console > 0){
|
||||||
app->build_header_dump(buffer);
|
app->build_header_dump(buffer);
|
||||||
if (app->size < 1000)
|
if (app->size < 1000)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user