diff --git a/common/debug.cpp b/common/debug.cpp index 9bbe9d304..1150db9f0 100644 --- a/common/debug.cpp +++ b/common/debug.cpp @@ -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) { diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index 3806e49e4..3da479576 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -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);