mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Object: re-change faction template related logs
This commit is contained in:
@@ -2574,13 +2574,13 @@ FactionTemplateEntry const* WorldObject::GetFactionTemplateEntry() const
|
||||
if (!entry)
|
||||
{
|
||||
if (Player const* player = ToPlayer())
|
||||
TC_LOG_ERROR("entities", "Player %s has invalid faction (faction template id) #%u", player->GetName().c_str(), GetFaction());
|
||||
TC_LOG_ERROR("entities.faction", "Player %s has invalid faction (faction template id) #%u", player->GetName().c_str(), GetFaction());
|
||||
else if (Creature const* creature = ToCreature())
|
||||
TC_LOG_ERROR("entities.unit", "Creature (template id: %u) has invalid faction (faction template id) #%u", creature->GetCreatureTemplate()->Entry, GetFaction());
|
||||
TC_LOG_ERROR("entities.faction", "Creature (template id: %u) has invalid faction (faction template id) #%u", creature->GetCreatureTemplate()->Entry, GetFaction());
|
||||
else if (GameObject const* go = ToGameObject())
|
||||
TC_LOG_ERROR("entities.gameobject", "GameObject (template id: %u) has invalid faction (faction template id) #%u", go->GetGOInfo()->entry, GetFaction());
|
||||
TC_LOG_ERROR("entities.faction", "GameObject (template id: %u) has invalid faction (faction template id) #%u", go->GetGOInfo()->entry, GetFaction());
|
||||
else
|
||||
TC_LOG_ERROR("entities", "WorldObject (name: %s, type: %u) has invalid faction (faction template id) #%u", GetName().c_str(), uint32(GetTypeId()), GetFaction());
|
||||
TC_LOG_ERROR("entities.faction", "WorldObject (name: %s, type: %u) has invalid faction (faction template id) #%u", GetName().c_str(), uint32(GetTypeId()), GetFaction());
|
||||
}
|
||||
|
||||
return entry;
|
||||
|
||||
@@ -3889,11 +3889,12 @@ Logger.mmaps=3,Server
|
||||
#Logger.cheat=3,Console Server
|
||||
#Logger.commands.ra=3,Console Server
|
||||
#Logger.condition=3,Console Server
|
||||
#Logger.entities.faction=3,Console Server
|
||||
#Logger.entities.gameobject=3,Console Server
|
||||
#Logger.entities.pet=3,Console Server
|
||||
#Logger.entities.player=3,Console Server
|
||||
#Logger.entities.player.character=3,Console Server
|
||||
#Logger.entities.player.dump=3,Console Server
|
||||
#Logger.entities.player=3,Console Server
|
||||
#Logger.entities.player.items=3,Console Server
|
||||
#Logger.entities.player.loading=3,Console Server
|
||||
#Logger.entities.player.skills=3,Console Server
|
||||
|
||||
Reference in New Issue
Block a user