Add MySQL Query logging at root

This commit is contained in:
Akkadius 2015-01-20 00:14:18 -06:00
parent 1928be9dd3
commit 1ad210ff29
2 changed files with 3 additions and 1 deletions

View File

@ -126,6 +126,8 @@ MySQLRequestResult DBcore::QueryDatabase(const char* query, uint32 querylen, boo
MySQLRequestResult requestResult(res, (uint32)mysql_affected_rows(&mysql), rowCount, (uint32)mysql_field_count(&mysql), (uint32)mysql_insert_id(&mysql));
Log.Out(Logs::General, Logs::MySQLQuery, "%s", query);
#if DEBUG_MYSQL_QUERIES >= 1
if (requestResult.Success())
{

View File

@ -123,12 +123,12 @@ void EQEmuLogSys::ProcessLogWrite(uint16 log_category, std::string message)
uint16 EQEmuLogSys::GetConsoleColorFromCategory(uint16 log_category){
switch (log_category) {
case Logs::Status:
return Console::Color::Yellow;
case Logs::Normal:
return Console::Color::Yellow;
case Logs::MySQLError:
case Logs::Error:
return Console::Color::LightRed;
case Logs::MySQLQuery:
case Logs::Debug:
return Console::Color::LightGreen;
case Logs::Quests: