mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-08 05:52: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)
|
bool EQEmuLog::Dump(LogIDs id, uint8* data, uint32 size, uint32 cols, uint32 skip)
|
||||||
{
|
{
|
||||||
if (!logFileValid) {
|
if (!logFileValid) {
|
||||||
#if EQDEBUG >= 10
|
logger.LogDebug(EQEmuLogSys::Detail, "Error: Dump() from null pointer");
|
||||||
std::cerr << "Error: Dump() from null pointer" << std::endl;
|
|
||||||
#endif
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
|
|||||||
@ -68,9 +68,9 @@ static const char* TypeNames[EQEmuLogSys::MaxLogID] = {
|
|||||||
};
|
};
|
||||||
static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
||||||
Console::Color::Yellow, // "Status",
|
Console::Color::Yellow, // "Status",
|
||||||
Console::Color::Yellow, // "Normal",
|
Console::Color::Yellow, // "Normal",
|
||||||
Console::Color::LightRed, // "Error",
|
Console::Color::LightRed, // "Error",
|
||||||
Console::Color::LightGreen, // "Debug",
|
Console::Color::LightGreen, // "Debug",
|
||||||
Console::Color::LightCyan, // "Quest",
|
Console::Color::LightCyan, // "Quest",
|
||||||
Console::Color::LightMagenta, // "Command",
|
Console::Color::LightMagenta, // "Command",
|
||||||
Console::Color::LightRed // "Crash"
|
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, ...){
|
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...){
|
||||||
if (RuleI(Logging, DebugLogLevel) < debug_level){
|
if (RuleI(Logging, DebugLogLevel) < debug_level){ return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, message);
|
va_start(args, message);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user