mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
Implement debug_level checking for ProcessLogWrite
This commit is contained in:
@@ -122,6 +122,10 @@ void EQEmuLogSys::ProcessLogWrite(uint16 debug_level, uint16 log_category, std::
|
|||||||
if (log_settings[log_category].log_to_file == 0)
|
if (log_settings[log_category].log_to_file == 0)
|
||||||
return;
|
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];
|
char time_stamp[80];
|
||||||
EQEmuLogSys::SetCurrentTimeStamp(time_stamp);
|
EQEmuLogSys::SetCurrentTimeStamp(time_stamp);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user