From 1ba002ef3d3b1ed3a4af5d348477f50b53eed4fa Mon Sep 17 00:00:00 2001 From: ccrs Date: Mon, 29 Apr 2019 22:48:45 +0200 Subject: Core/Object: re-change faction template related logs (cherry picked from commit dfa54d3bf41897dbdfc0acf42f39b173dd39e857) --- src/server/game/Entities/Object/Object.cpp | 8 ++++---- src/server/worldserver/worldserver.conf.dist | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index 8c9f54897b6..ecf66509b44 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -2397,13 +2397,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; diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist index eab8c70488f..e99fc1d2a72 100644 --- a/src/server/worldserver/worldserver.conf.dist +++ b/src/server/worldserver/worldserver.conf.dist @@ -4048,11 +4048,12 @@ Logger.mmaps=3,Server #Logger.criteria=3,Console Server #Logger.criteria.achievement=3,Console Server #Logger.entities.areatrigger=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 -- cgit v1.2.3