From aeff65064980b5269bf97a9accc66801819bc5f5 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 03:02:15 -0600 Subject: [PATCH] Implement debug_level checking for ProcessLogWrite --- common/eqemu_logsys.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index 0ee066466..035f0c09d 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -122,6 +122,10 @@ void EQEmuLogSys::ProcessLogWrite(uint16 debug_level, uint16 log_category, std:: if (log_settings[log_category].log_to_file == 0) return; + /* Make sure the message inbound is at a debug level we're set at */ + if (log_settings[log_category].log_to_file < debug_level) + return; + char time_stamp[80]; EQEmuLogSys::SetCurrentTimeStamp(time_stamp);