mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 18:02:26 +00:00
EQEmuLog::Dump preprocessor remove
This commit is contained in:
parent
26b550dd0d
commit
b7ade8bf1b
@ -372,9 +372,7 @@ bool EQEmuLog::writeNTS(LogIDs id, bool dofile, const char *fmt, ...)
|
||||
bool EQEmuLog::Dump(LogIDs id, uint8* data, uint32 size, uint32 cols, uint32 skip)
|
||||
{
|
||||
if (!logFileValid) {
|
||||
#if EQDEBUG >= 10
|
||||
std::cerr << "Error: Dump() from null pointer" << std::endl;
|
||||
#endif
|
||||
logger.LogDebug(EQEmuLogSys::Detail, "Error: Dump() from null pointer");
|
||||
return false;
|
||||
}
|
||||
if (size == 0) {
|
||||
|
||||
@ -68,9 +68,9 @@ static const char* TypeNames[EQEmuLogSys::MaxLogID] = {
|
||||
};
|
||||
static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
||||
Console::Color::Yellow, // "Status",
|
||||
Console::Color::Yellow, // "Normal",
|
||||
Console::Color::Yellow, // "Normal",
|
||||
Console::Color::LightRed, // "Error",
|
||||
Console::Color::LightGreen, // "Debug",
|
||||
Console::Color::LightGreen, // "Debug",
|
||||
Console::Color::LightCyan, // "Quest",
|
||||
Console::Color::LightMagenta, // "Command",
|
||||
Console::Color::LightRed // "Crash"
|
||||
@ -91,9 +91,7 @@ void EQEmuLogSys::StartZoneLogs(const std::string log_name)
|
||||
}
|
||||
|
||||
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...){
|
||||
if (RuleI(Logging, DebugLogLevel) < debug_level){
|
||||
return;
|
||||
}
|
||||
if (RuleI(Logging, DebugLogLevel) < debug_level){ return; }
|
||||
|
||||
va_list args;
|
||||
va_start(args, message);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user