EQEmuLog::Dump preprocessor remove

This commit is contained in:
Akkadius 2015-01-10 17:27:24 -06:00
parent 26b550dd0d
commit b7ade8bf1b
2 changed files with 4 additions and 8 deletions

View File

@ -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) {

View File

@ -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);