mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Logging: Performance-related tweaks to logging system
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
Memleak fix
This commit is contained in:
@@ -30,7 +30,7 @@ void CharacterDatabaseCleaner::CleanDatabase()
|
||||
if (!sWorld->getBoolConfig(CONFIG_CLEAN_CHARACTER_DB))
|
||||
return;
|
||||
|
||||
sLog->outInfo(LOG_FILTER_GENERAL, "Cleaning character database...");
|
||||
TC_LOG_INFO(LOG_FILTER_GENERAL, "Cleaning character database...");
|
||||
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
@@ -64,7 +64,7 @@ void CharacterDatabaseCleaner::CleanDatabase()
|
||||
|
||||
sWorld->SetCleaningFlags(flags);
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Cleaned character database in %u ms", GetMSTimeDiffToNow(oldMSTime));
|
||||
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Cleaned character database in %u ms", GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table, bool (*check)(uint32))
|
||||
@@ -72,7 +72,7 @@ void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table
|
||||
QueryResult result = CharacterDatabase.PQuery("SELECT DISTINCT %s FROM %s", column, table);
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_GENERAL, "Table %s is empty.", table);
|
||||
TC_LOG_INFO(LOG_FILTER_GENERAL, "Table %s is empty.", table);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user