mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ void CharacterDatabaseCleaner::CleanDatabase()
|
||||
if (!sWorld->getBoolConfig(CONFIG_CLEAN_CHARACTER_DB))
|
||||
return;
|
||||
|
||||
LOG_INFO("server", "Cleaning character database...");
|
||||
LOG_INFO("misc", "Cleaning character database...");
|
||||
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
@@ -51,8 +51,8 @@ void CharacterDatabaseCleaner::CleanDatabase()
|
||||
|
||||
sWorld->SetCleaningFlags(flags);
|
||||
|
||||
LOG_INFO("server", ">> Cleaned character database in %u ms", GetMSTimeDiffToNow(oldMSTime));
|
||||
LOG_INFO("server", " ");
|
||||
LOG_INFO("server.loading", ">> Cleaned character database in %u ms", GetMSTimeDiffToNow(oldMSTime));
|
||||
LOG_INFO("server.loading", " ");
|
||||
}
|
||||
|
||||
void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table, bool (*check)(uint32))
|
||||
@@ -60,7 +60,7 @@ void CharacterDatabaseCleaner::CheckUnique(const char* column, const char* table
|
||||
QueryResult result = CharacterDatabase.PQuery("SELECT DISTINCT %s FROM %s", column, table);
|
||||
if (!result)
|
||||
{
|
||||
LOG_INFO("server", "Table %s is empty.", table);
|
||||
LOG_INFO("sql.sql", "Table %s is empty.", table);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ bool PlayerDumpWriter::DumpTable(std::string& dump, uint32 guid, char const* tab
|
||||
case DTT_CHARACTER:
|
||||
{
|
||||
if (result->GetFieldCount() <= 74) // avoid crashes on next check
|
||||
LOG_FATAL("server", "PlayerDumpWriter::DumpTable - Trying to access non-existing or wrong positioned field (`deleteInfos_Account`) in `characters` table.");
|
||||
LOG_FATAL("entities.player.dump", "PlayerDumpWriter::DumpTable - Trying to access non-existing or wrong positioned field (`deleteInfos_Account`) in `characters` table.");
|
||||
|
||||
if (result->Fetch()[74].GetUInt32()) // characters.deleteInfos_Account - if filled error
|
||||
return false;
|
||||
@@ -503,7 +503,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
||||
std::string tn = gettablename(line);
|
||||
if (tn.empty())
|
||||
{
|
||||
LOG_ERROR("server", "LoadPlayerDump: Can't extract table name from line: '%s'!", line.c_str());
|
||||
LOG_ERROR("entities.player.dump", "LoadPlayerDump: Can't extract table name from line: '%s'!", line.c_str());
|
||||
ROLLBACK(DUMP_FILE_BROKEN);
|
||||
}
|
||||
|
||||
@@ -520,7 +520,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
||||
|
||||
if (i == DUMP_TABLE_COUNT)
|
||||
{
|
||||
LOG_ERROR("server", "LoadPlayerDump: Unknown table: '%s'!", tn.c_str());
|
||||
LOG_ERROR("entities.player.dump", "LoadPlayerDump: Unknown table: '%s'!", tn.c_str());
|
||||
ROLLBACK(DUMP_FILE_BROKEN);
|
||||
}
|
||||
|
||||
@@ -670,7 +670,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
||||
break;
|
||||
}
|
||||
default:
|
||||
LOG_ERROR("server", "Unknown dump table type: %u", type);
|
||||
LOG_ERROR("entities.player.dump", "Unknown dump table type: %u", type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user