From ef4847555a5a64c406d5668d2c85e5f1594c5a0b Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 16 Jan 2015 21:19:19 -0600 Subject: [PATCH] Add 'Quests' Category --- common/debug.cpp | 2 +- common/eqemu_logsys.h | 2 ++ zone/embxs.cpp | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/debug.cpp b/common/debug.cpp index 2bf685cbf..cd02b8005 100644 --- a/common/debug.cpp +++ b/common/debug.cpp @@ -226,7 +226,7 @@ bool EQEmuLog::writePVA(LogIDs id, const char *prefix, const char *fmt, va_list if (id == EQEmuLog::LogIDs::Crash){ SetConsoleTextAttribute(console_handle, ConsoleColor::Colors::LightRed); } #endif - fprintf(stdout, "[%s] %s", LogNames[id], prefix); + fprintf(stdout, "[%s] %s", LogNames[id], prefix); vfprintf(stdout, fmt, argptr); #ifdef _WINDOWS diff --git a/common/eqemu_logsys.h b/common/eqemu_logsys.h index d8ade655b..2ce906b41 100644 --- a/common/eqemu_logsys.h +++ b/common/eqemu_logsys.h @@ -74,6 +74,7 @@ public: Client_Server_Packet, Aggro, Attack, + Quests, MaxCategoryID /* Don't Remove this*/ }; @@ -139,6 +140,7 @@ static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = { "Client_Server_Packet", "Aggro", "Attack", + "Quests" }; #endif \ No newline at end of file diff --git a/zone/embxs.cpp b/zone/embxs.cpp index 784f8b1ba..2666665f2 100644 --- a/zone/embxs.cpp +++ b/zone/embxs.cpp @@ -98,6 +98,8 @@ XS(XS_EQEmuIO_PRINT) for(i = 0; *cur != '\0'; i++, cur++) { if(*cur == '\n') { LogFile->writebuf(EQEmuLog::Quest, str + pos, 1, len); + //logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Quests, str); + //std::cout << str << "LOLOL\n"; len = 0; pos = i+1; } else { @@ -106,6 +108,7 @@ XS(XS_EQEmuIO_PRINT) } if(len > 0) { LogFile->writebuf(EQEmuLog::Quest, str + pos, 1, len); + // logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Quest, str); } }