aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-04-29 22:48:45 +0200
committerccrs <ccrs@users.noreply.github.com>2019-04-29 22:48:45 +0200
commitdfa54d3bf41897dbdfc0acf42f39b173dd39e857 (patch)
treea540fa48040fda90fc76e4e3c6181db38cc15c9b /src
parentaee26eb46727171593ef7cc1d2652a7847dc88fc (diff)
Core/Object: re-change faction template related logs
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Object/Object.cpp8
-rw-r--r--src/server/worldserver/worldserver.conf.dist3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp
index 30338d87db4..afb05f8c962 100644
--- a/src/server/game/Entities/Object/Object.cpp
+++ b/src/server/game/Entities/Object/Object.cpp
@@ -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;
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 0edcde9a9b8..d7583a8a1d5 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -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