mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 02:02:25 +00:00
Add category processing to ProcessGMSay so we don't get a zone crash from feedback loop of GMSay outputting packets, then those packets going to GMSay. This would make a log inside of a log inside of a log, I call it, log inception
This commit is contained in:
parent
dbdfb23cc3
commit
362de5084f
@ -138,8 +138,12 @@ std::string EQEmuLogSys::FormatDebugCategoryMessageString(uint16 log_category, s
|
|||||||
|
|
||||||
void EQEmuLogSys::ProcessGMSay(uint16 log_type, uint16 log_category, std::string message)
|
void EQEmuLogSys::ProcessGMSay(uint16 log_type, uint16 log_category, std::string message)
|
||||||
{
|
{
|
||||||
|
/* Enabling Netcode based GMSay output creates a feedback loop that ultimately ends in a crash */
|
||||||
|
if (log_category == EQEmuLogSys::LogCategory::Netcode)
|
||||||
|
return;
|
||||||
|
|
||||||
if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){
|
if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){
|
||||||
// on_log_gmsay_hook(log_type, message);
|
on_log_gmsay_hook(log_type, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,9 +200,9 @@ void EQEmuLogSys::LogDebugType(DebugLevel debug_level, uint16 log_category, std:
|
|||||||
|
|
||||||
std::string output_debug_message = EQEmuLogSys::FormatDebugCategoryMessageString(log_category, output_message);
|
std::string output_debug_message = EQEmuLogSys::FormatDebugCategoryMessageString(log_category, output_message);
|
||||||
|
|
||||||
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, 0, output_debug_message);
|
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, log_category, output_debug_message);
|
||||||
EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, 0, output_debug_message);
|
EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, log_category, output_debug_message);
|
||||||
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, 0, output_debug_message);
|
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user