feat(Core/Logs): Improve logs for linked_respawn (#10202)

This commit is contained in:
Nefertumm
2022-01-27 08:35:44 -03:00
committed by GitHub
parent 6bbcdebbe8
commit 75951926e6
+16 -16
View File
@@ -1729,7 +1729,7 @@ void ObjectMgr::LoadLinkedRespawn()
const CreatureData* slave = GetCreatureData(guidLow); const CreatureData* slave = GetCreatureData(guidLow);
if (!slave) if (!slave)
{ {
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", guidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature (guid) %u not found in creature table", guidLow);
error = true; error = true;
break; break;
} }
@@ -1737,7 +1737,7 @@ void ObjectMgr::LoadLinkedRespawn()
const CreatureData* master = GetCreatureData(linkedGuidLow); const CreatureData* master = GetCreatureData(linkedGuidLow);
if (!master) if (!master)
{ {
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature (linkedGuid) %u not found in creature table", linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1745,14 +1745,14 @@ void ObjectMgr::LoadLinkedRespawn()
const MapEntry* const map = sMapStore.LookupEntry(master->mapid); const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
if (!map || !map->Instanceable() || (master->mapid != slave->mapid)) if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
{ {
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Creature '%u' on an unpermitted map.", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty) if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
{ {
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Creature '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1766,7 +1766,7 @@ void ObjectMgr::LoadLinkedRespawn()
const CreatureData* slave = GetCreatureData(guidLow); const CreatureData* slave = GetCreatureData(guidLow);
if (!slave) if (!slave)
{ {
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", guidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature (guid) %u not found in creature table", guidLow);
error = true; error = true;
break; break;
} }
@@ -1774,7 +1774,7 @@ void ObjectMgr::LoadLinkedRespawn()
const GameObjectData* master = GetGOData(linkedGuidLow); const GameObjectData* master = GetGOData(linkedGuidLow);
if (!master) if (!master)
{ {
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (linkedGuid) %u not found in gameobject table", linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1782,14 +1782,14 @@ void ObjectMgr::LoadLinkedRespawn()
const MapEntry* const map = sMapStore.LookupEntry(master->mapid); const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
if (!map || !map->Instanceable() || (master->mapid != slave->mapid)) if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
{ {
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Gameobject '%u' on an unpermitted map.", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty) if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
{ {
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Gameobject '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1803,7 +1803,7 @@ void ObjectMgr::LoadLinkedRespawn()
const GameObjectData* slave = GetGOData(guidLow); const GameObjectData* slave = GetGOData(guidLow);
if (!slave) if (!slave)
{ {
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", guidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (guid) %u not found in gameobject table", guidLow);
error = true; error = true;
break; break;
} }
@@ -1811,7 +1811,7 @@ void ObjectMgr::LoadLinkedRespawn()
const GameObjectData* master = GetGOData(linkedGuidLow); const GameObjectData* master = GetGOData(linkedGuidLow);
if (!master) if (!master)
{ {
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (linkedGuid) %u not found in gameobject table", linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1819,14 +1819,14 @@ void ObjectMgr::LoadLinkedRespawn()
const MapEntry* const map = sMapStore.LookupEntry(master->mapid); const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
if (!map || !map->Instanceable() || (master->mapid != slave->mapid)) if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
{ {
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Gameobject '%u' on an unpermitted map.", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty) if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
{ {
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Gameobject '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1840,7 +1840,7 @@ void ObjectMgr::LoadLinkedRespawn()
const GameObjectData* slave = GetGOData(guidLow); const GameObjectData* slave = GetGOData(guidLow);
if (!slave) if (!slave)
{ {
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", guidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (guid) %u not found in gameobject table", guidLow);
error = true; error = true;
break; break;
} }
@@ -1848,7 +1848,7 @@ void ObjectMgr::LoadLinkedRespawn()
const CreatureData* master = GetCreatureData(linkedGuidLow); const CreatureData* master = GetCreatureData(linkedGuidLow);
if (!master) if (!master)
{ {
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Creature (linkedGuid) %u not found in creature table", linkedGuidLow);
error = true; error = true;
break; break;
} }
@@ -1856,14 +1856,14 @@ void ObjectMgr::LoadLinkedRespawn()
const MapEntry* const map = sMapStore.LookupEntry(master->mapid); const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
if (!map || !map->Instanceable() || (master->mapid != slave->mapid)) if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
{ {
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Creature '%u' on an unpermitted map.", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty) if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
{ {
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow); LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Creature '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
error = true; error = true;
break; break;
} }