mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Logging: Move more log messages to LOG_FILTER_SERVER_LOADING
This commit is contained in:
@@ -25,10 +25,10 @@ ScriptPointVector const SystemMgr::_empty;
|
||||
|
||||
void SystemMgr::LoadScriptTexts()
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Texts...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Texts...");
|
||||
LoadTrinityStrings("script_texts", TEXT_SOURCE_RANGE, 1+(TEXT_SOURCE_RANGE*2));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Texts additional data...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Texts additional data...");
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
// 0 1 2 3
|
||||
@@ -36,8 +36,7 @@ void SystemMgr::LoadScriptTexts()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 additional Script Texts data. DB table `script_texts` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 additional Script Texts data. DB table `script_texts` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,23 +82,21 @@ void SystemMgr::LoadScriptTexts()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u additional Script Texts data in %u ms", uiCount, GetMSTimeDiffToNow(oldMSTime));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u additional Script Texts data in %u ms", uiCount, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void SystemMgr::LoadScriptTextsCustom()
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Custom Texts...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Custom Texts...");
|
||||
LoadTrinityStrings("custom_texts", TEXT_SOURCE_RANGE*2, 1+(TEXT_SOURCE_RANGE*3));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Custom Texts additional data...");
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Custom Texts additional data...");
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, sound, type, language, emote FROM custom_texts");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 additional Custom Texts data. DB table `custom_texts` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 additional Custom Texts data. DB table `custom_texts` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -145,8 +142,7 @@ void SystemMgr::LoadScriptTextsCustom()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u additional Custom Texts data.", uiCount);
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u additional Custom Texts data.", uiCount);
|
||||
}
|
||||
|
||||
void SystemMgr::LoadScriptWaypoints()
|
||||
@@ -163,15 +159,14 @@ void SystemMgr::LoadScriptWaypoints()
|
||||
if (result)
|
||||
uiCreatureCount = result->GetRowCount();
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, "TSCR: Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
|
||||
|
||||
// 0 1 2 3 4 5
|
||||
result = WorldDatabase.Query("SELECT entry, pointid, location_x, location_y, location_z, waittime FROM script_waypoint ORDER BY pointid");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded 0 Script Waypoints. DB table `script_waypoint` is empty.");
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 Script Waypoints. DB table `script_waypoint` is empty.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -206,6 +201,5 @@ void SystemMgr::LoadScriptWaypoints()
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
sLog->outInfo(LOG_FILTER_TSCR, ">> Loaded %u Script Waypoint nodes in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u Script Waypoint nodes in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user