From 564bff07fe411a920adff8a2964390b20564cc4b Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sun, 18 Jan 2015 01:42:23 -0600 Subject: [PATCH] Refactor ProcessLogWrite to no longer use type --- common/eqemu_logsys.cpp | 6 +++--- common/eqemu_logsys.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index 0b4b61d8c..0322f9c96 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -110,11 +110,11 @@ void EQEmuLogSys::ProcessGMSay(uint16 log_category, std::string message) return; if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){ - on_log_gmsay_hook(log_type, message); + on_log_gmsay_hook(log_category, message); } } -void EQEmuLogSys::ProcessLogWrite(uint16 log_type, uint16 log_category, std::string message) +void EQEmuLogSys::ProcessLogWrite(uint16 log_category, std::string message) { /* Check if category enabled for process */ if (log_settings[log_category].log_to_file == 0) @@ -177,7 +177,7 @@ void EQEmuLogSys::DebugCategory(DebugLevel debug_level, uint16 log_category, std EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, log_category, output_debug_message); EQEmuLogSys::ProcessGMSay(log_category, output_debug_message); - EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message); + EQEmuLogSys::ProcessLogWrite(log_category, output_debug_message); } void EQEmuLogSys::SetCurrentTimeStamp(char* time_stamp){ diff --git a/common/eqemu_logsys.h b/common/eqemu_logsys.h index 42b39af7e..11bf6d3c0 100644 --- a/common/eqemu_logsys.h +++ b/common/eqemu_logsys.h @@ -106,8 +106,8 @@ private: std::string FormatDebugCategoryMessageString(uint16 log_category, std::string in_message); void ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message); - void ProcessGMSay(uint16 log_type, uint16 log_category, std::string message); - void ProcessLogWrite(uint16 log_type, uint16 log_category, std::string message); + void ProcessGMSay(uint16 log_category, std::string message); + void ProcessLogWrite(uint16 log_category, std::string message); }; extern EQEmuLogSys Log;