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:
Kargatum
2021-06-21 08:07:12 +07:00
committed by GitHub
parent 9f80a592bb
commit 5787d00d54
199 changed files with 2312 additions and 4487 deletions

View File

@@ -247,7 +247,7 @@ public:
_mapEntry = sMapStore.LookupEntry(_mapId);
if (!_mapEntry)
LOG_ERROR("server", "Invalid MapScript for %u; no such map ID.", _mapId);
LOG_ERROR("maps.script", "Invalid MapScript for %u; no such map ID.", _mapId);
}
// Gets the MapEntry structure associated with this script. Can return nullptr.
@@ -288,7 +288,7 @@ public:
checkMap();
if (GetEntry() && !GetEntry()->IsWorldMap())
LOG_ERROR("server", "WorldMapScript for map %u is invalid.", GetEntry()->MapID);
LOG_ERROR("maps.script", "WorldMapScript for map %u is invalid.", GetEntry()->MapID);
}
};
@@ -305,7 +305,7 @@ public:
checkMap();
if (GetEntry() && !GetEntry()->IsDungeon())
LOG_ERROR("server", "InstanceMapScript for map %u is invalid.", GetEntry()->MapID);
LOG_ERROR("maps.script", "InstanceMapScript for map %u is invalid.", GetEntry()->MapID);
}
// Gets an InstanceScript object for this instance.
@@ -325,7 +325,7 @@ public:
checkMap();
if (GetEntry() && !GetEntry()->IsBattleground())
LOG_ERROR("server", "BattlegroundMapScript for map %u is invalid.", GetEntry()->MapID);
LOG_ERROR("maps.script", "BattlegroundMapScript for map %u is invalid.", GetEntry()->MapID);
}
};
@@ -1956,7 +1956,7 @@ public:
else
{
// If the script is already assigned -> delete it!
LOG_ERROR("server", "Script named '%s' is already assigned (two or more scripts have the same name), so the script can't work, aborting...",
LOG_ERROR("scripts", "Script named '%s' is already assigned (two or more scripts have the same name), so the script can't work, aborting...",
script->GetName().c_str());
ABORT(); // Error that should be fixed ASAP.
@@ -2000,7 +2000,7 @@ private:
{
if (it->second == script)
{
LOG_ERROR("server", "Script '%s' has same memory pointer as '%s'.",
LOG_ERROR("scripts", "Script '%s' has same memory pointer as '%s'.",
script->GetName().c_str(), it->second->GetName().c_str());
return false;