aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2015-11-10 00:05:35 +0100
committerCarbenium <carbenium@outlook.com>2015-11-10 00:50:15 +0100
commit2a36b009070e1d151c7a2e0e3fa13a348d10333c (patch)
tree9e0ad0766e64761dcc7439e57104f4c3a2ce8e67
parent52394eb93cab93e1edc930e8a0af7572b15b2b06 (diff)
Core/Player: Improve a log message
(cherry picked from commit 7eb314fcd16c2265daf0948c6744a9f206da3150)
-rw-r--r--src/server/game/Entities/Player/Player.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 97c4a78fc92..3d11e786d52 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -21428,7 +21428,7 @@ void Player::InitDisplayIds()
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
if (!info)
{
- TC_LOG_ERROR("entities.player", "Player %u has incorrect race/class pair. Can't init display ids.", GetGUID().GetCounter());
+ TC_LOG_ERROR("entities.player", "Player %s (%s) has incorrect race/class pair. Can't init display ids.", GetName().c_str(), GetGUID().ToString().c_str());
return;
}
@@ -21444,8 +21444,7 @@ void Player::InitDisplayIds()
SetNativeDisplayId(info->displayId_m);
break;
default:
- TC_LOG_ERROR("entities.player", "Invalid gender %u for player", gender);
- return;
+ TC_LOG_ERROR("entities.player", "Player %s (%s) has invalid gender %u", GetName().c_str(), GetGUID().ToString().c_str(), gender);
}
}