diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index a09abd8bc..a293ce8e2 100644 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -98,13 +98,13 @@ void LoadDisables() case DISABLE_TYPE_SPELL: if (!(sSpellMgr->GetSpellInfo(entry, DIFFICULTY_NONE) || flags & SPELL_DISABLE_DEPRECATED_SPELL)) { - TC_LOG_ERROR("sql.sql", "Spell entry {} from `disables` doesn't exist in dbc, skipped.", entry); + TC_LOG_DEBUG("sql.sql", "Spell entry {} from `disables` doesn't exist in dbc, skipped.", entry); continue; } if (!flags || flags > MAX_SPELL_DISABLE_TYPE) { - TC_LOG_ERROR("sql.sql", "Disable flags for spell {} are invalid, skipped.", entry); + TC_LOG_DEBUG("sql.sql", "Disable flags for spell {} are invalid, skipped.", entry); continue; } @@ -115,7 +115,7 @@ void LoadDisables() if (Optional mapId = Trinity::StringTo(mapStr)) data.params[0].insert(*mapId); else - TC_LOG_ERROR("sql.sql", "Disable map '{}' for spell {} is invalid, skipped.", mapStr, entry); + TC_LOG_DEBUG("sql.sql", "Disable map '{}' for spell {} is invalid, skipped.", mapStr, entry); } } @@ -126,7 +126,7 @@ void LoadDisables() if (Optional areaId = Trinity::StringTo(areaStr)) data.params[1].insert(*areaId); else - TC_LOG_ERROR("sql.sql", "Disable area '{}' for spell {} is invalid, skipped.", areaStr, entry); + TC_LOG_DEBUG("sql.sql", "Disable area '{}' for spell {} is invalid, skipped.", areaStr, entry); } } diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 38448d0a0..e303931e7 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -759,7 +759,7 @@ void ObjectMgr::LoadCreatureTemplateAddons() if (!GetCreatureTemplate(entry)) { - TC_LOG_ERROR("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_addon`", entry); + TC_LOG_DEBUG("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_addon`", entry); continue; } @@ -898,13 +898,13 @@ void ObjectMgr::LoadCreatureTemplateSparring() if (!sObjectMgr->GetCreatureTemplate(entry)) { - TC_LOG_ERROR("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_sparring`", entry); + TC_LOG_DEBUG("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_sparring`", entry); continue; } if (noNPCDamageBelowHealthPct <= 0 || noNPCDamageBelowHealthPct > 100) { - TC_LOG_ERROR("sql.sql", "Creature (Entry: {}) has invalid NoNPCDamageBelowHealthPct ({}) defined in `creature_template_sparring`. Skipping", + TC_LOG_DEBUG("sql.sql", "Creature (Entry: {}) has invalid NoNPCDamageBelowHealthPct ({}) defined in `creature_template_sparring`. Skipping", entry, noNPCDamageBelowHealthPct); continue; } @@ -947,7 +947,7 @@ void ObjectMgr::LoadCreatureTemplateDifficulty() auto itr = _creatureTemplateStore.find(entry); if (itr == _creatureTemplateStore.end()) { - TC_LOG_ERROR("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_difficulty`", entry); + TC_LOG_DEBUG("sql.sql", "Creature template (Entry: {}) does not exist but has a record in `creature_template_difficulty`", entry); continue; } @@ -1193,7 +1193,7 @@ void ObjectMgr::LoadCreatureAddons() CreatureData const* creData = GetCreatureData(guid); if (!creData) { - TC_LOG_ERROR("sql.sql", "Creature (GUID: {}) does not exist but has a record in `creature_addon`", guid); + TC_LOG_DEBUG("sql.sql", "Creature (GUID: {}) does not exist but has a record in `creature_addon`", guid); continue; } @@ -1203,7 +1203,7 @@ void ObjectMgr::LoadCreatureAddons() if (creData->movementType == WAYPOINT_MOTION_TYPE && !creatureAddon.PathId) { const_cast(creData)->movementType = IDLE_MOTION_TYPE; - TC_LOG_ERROR("sql.sql", "Creature (GUID {}) has movement type set to WAYPOINT_MOTION_TYPE but no path assigned", guid); + TC_LOG_DEBUG("sql.sql", "Creature (GUID {}) has movement type set to WAYPOINT_MOTION_TYPE but no path assigned", guid); } creatureAddon.mount = fields[2].GetUInt32(); @@ -1338,7 +1338,7 @@ void ObjectMgr::LoadGameObjectAddons() GameObjectData const* goData = GetGameObjectData(guid); if (!goData) { - TC_LOG_ERROR("sql.sql", "GameObject (GUID: {}) does not exist but has a record in `gameobject_addon`", guid); + TC_LOG_DEBUG("sql.sql", "GameObject (GUID: {}) does not exist but has a record in `gameobject_addon`", guid); continue; } @@ -1351,7 +1351,7 @@ void ObjectMgr::LoadGameObjectAddons() if (gameObjectAddon.invisibilityType >= TOTAL_INVISIBILITY_TYPES) { - TC_LOG_ERROR("sql.sql", "GameObject (GUID: {}) has invalid InvisibilityType in `gameobject_addon`, disabled invisibility", guid); + TC_LOG_DEBUG("sql.sql", "GameObject (GUID: {}) has invalid InvisibilityType in `gameobject_addon`, disabled invisibility", guid); gameObjectAddon.invisibilityType = INVISIBILITY_GENERAL; gameObjectAddon.InvisibilityValue = 0; } @@ -1477,7 +1477,7 @@ void ObjectMgr::LoadEquipmentTemplates() if (!GetCreatureTemplate(entry)) { - TC_LOG_ERROR("sql.sql", "Creature template (CreatureID: {}) does not exist but has a record in `creature_equip_template`", entry); + TC_LOG_DEBUG("sql.sql", "Creature template (CreatureID: {}) does not exist but has a record in `creature_equip_template`", entry); continue; } @@ -1564,7 +1564,7 @@ void ObjectMgr::LoadCreatureMovementOverrides() ObjectGuid::LowType spawnId = fields[0].GetUInt64(); if (!GetCreatureData(spawnId)) { - TC_LOG_ERROR("sql.sql", "Creature (GUID: {}) does not exist but has a record in `creature_movement_override`", spawnId); + TC_LOG_DEBUG("sql.sql", "Creature (GUID: {}) does not exist but has a record in `creature_movement_override`", spawnId); continue; } @@ -1712,7 +1712,7 @@ void ObjectMgr::LoadCreatureModelInfo() CreatureDisplayInfoEntry const* creatureDisplay = sCreatureDisplayInfoStore.LookupEntry(displayId); if (!creatureDisplay) { - TC_LOG_ERROR("sql.sql", "Table `creature_model_info` has a non-existent DisplayID (ID: {}). Skipped.", displayId); + TC_LOG_DEBUG("sql.sql", "Table `creature_model_info` has a non-existent DisplayID (ID: {}). Skipped.", displayId); continue; } @@ -1736,7 +1736,7 @@ void ObjectMgr::LoadCreatureModelInfo() if (modelInfo.displayId_other_gender && !sCreatureDisplayInfoStore.LookupEntry(modelInfo.displayId_other_gender)) { - TC_LOG_ERROR("sql.sql", "Table `creature_model_info` has a non-existent DisplayID_Other_Gender (ID: {}) being used by DisplayID (ID: {}).", modelInfo.displayId_other_gender, displayId); + TC_LOG_DEBUG("sql.sql", "Table `creature_model_info` has a non-existent DisplayID_Other_Gender (ID: {}) being used by DisplayID (ID: {}).", modelInfo.displayId_other_gender, displayId); modelInfo.displayId_other_gender = 0; } @@ -6325,7 +6325,7 @@ void ObjectMgr::LoadNPCText() uint32 textID = fields[0].GetUInt32(); if (!textID) { - TC_LOG_ERROR("sql.sql", "Table `npc_text` has record with reserved id 0, ignore."); + TC_LOG_DEBUG("sql.sql", "Table `npc_text` has record with reserved id 0, ignore."); continue; } @@ -6343,7 +6343,7 @@ void ObjectMgr::LoadNPCText() { if (!sBroadcastTextStore.LookupEntry(npcText.Data[i].BroadcastTextID)) { - TC_LOG_ERROR("sql.sql", "NPCText (ID: {}) has a non-existing BroadcastText (ID: {}, Index: {})", textID, npcText.Data[i].BroadcastTextID, i); + TC_LOG_DEBUG("sql.sql", "NPCText (ID: {}) has a non-existing BroadcastText (ID: {}, Index: {})", textID, npcText.Data[i].BroadcastTextID, i); npcText.Data[i].Probability = 0.0f; npcText.Data[i].BroadcastTextID = 0; } @@ -6354,7 +6354,7 @@ void ObjectMgr::LoadNPCText() { if (npcText.Data[i].Probability > 0 && npcText.Data[i].BroadcastTextID == 0) { - TC_LOG_ERROR("sql.sql", "NPCText (ID: {}) has a probability (Index: {}) set, but no BroadcastTextID to go with it", textID, i); + TC_LOG_DEBUG("sql.sql", "NPCText (ID: {}) has a probability (Index: {}) set, but no BroadcastTextID to go with it", textID, i); npcText.Data[i].Probability = 0; } } @@ -6362,7 +6362,7 @@ void ObjectMgr::LoadNPCText() float probabilitySum = std::accumulate(std::begin(npcText.Data), std::end(npcText.Data), 0.0f, [](float sum, NpcTextData const& data) { return sum + data.Probability; }); if (probabilitySum <= 0.0f) { - TC_LOG_ERROR("sql.sql", "NPCText (ID: {}) has a probability sum 0, no text can be selected from it, skipped.", textID); + TC_LOG_DEBUG("sql.sql", "NPCText (ID: {}) has a probability sum 0, no text can be selected from it, skipped.", textID); continue; } @@ -7852,7 +7852,7 @@ void ObjectMgr::LoadGameObjectTemplateAddons() GameObjectTemplate const* got = GetGameObjectTemplate(entry); if (!got) { - TC_LOG_ERROR("sql.sql", "GameObject template (Entry: {}) does not exist but has a record in `gameobject_template_addon`", entry); + TC_LOG_DEBUG("sql.sql", "GameObject template (Entry: {}) does not exist but has a record in `gameobject_template_addon`", entry); continue; } @@ -7936,7 +7936,7 @@ void ObjectMgr::LoadGameObjectOverrides() GameObjectData const* goData = GetGameObjectData(spawnId); if (!goData) { - TC_LOG_ERROR("sql.sql", "GameObject (SpawnId: {}) does not exist but has a record in `gameobject_overrides`", spawnId); + TC_LOG_DEBUG("sql.sql", "GameObject (SpawnId: {}) does not exist but has a record in `gameobject_overrides`", spawnId); continue; } @@ -7945,7 +7945,7 @@ void ObjectMgr::LoadGameObjectOverrides() gameObjectOverride.Flags = fields[2].GetUInt32(); if (gameObjectOverride.Faction && !sFactionTemplateStore.LookupEntry(gameObjectOverride.Faction)) - TC_LOG_ERROR("sql.sql", "GameObject (SpawnId: {}) has invalid faction ({}) defined in `gameobject_overrides`.", spawnId, gameObjectOverride.Faction); + TC_LOG_DEBUG("sql.sql", "GameObject (SpawnId: {}) has invalid faction ({}) defined in `gameobject_overrides`.", spawnId, gameObjectOverride.Faction); ++count; } while (result->NextRow());