[Logging] Improvements to GM Say Logging (#2765)

This commit is contained in:
Chris Miles
2023-01-19 22:24:57 -06:00
committed by GitHub
parent d3e756287e
commit 900837f633
5 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ std::ofstream process_log;
*/
EQEmuLogSys::EQEmuLogSys()
{
m_on_log_gmsay_hook = [](uint16 log_type, const std::string &) {};
m_on_log_gmsay_hook = [](uint16 log_type, const char *func, const std::string &) {};
m_on_log_console_hook = [](uint16 log_type, const std::string &) {};
}
@@ -412,7 +412,7 @@ void EQEmuLogSys::Out(
);
}
if (l.log_to_gmsay_enabled) {
m_on_log_gmsay_hook(log_category, output_message);
m_on_log_gmsay_hook(log_category, func, output_message);
}
if (l.log_to_file_enabled) {
EQEmuLogSys::ProcessLogWrite(