mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
Core/Logs: Log full guid instead of just low guid
This commit is contained in:
@@ -1194,15 +1194,15 @@ void WorldSession::HandleFarSightOpcode(WorldPacket& recvData)
|
||||
|
||||
if (apply)
|
||||
{
|
||||
TC_LOG_DEBUG("network", "Added FarSight %s to player %u", _player->GetGuidValue(PLAYER_FARSIGHT).ToString().c_str(), _player->GetGUID().GetCounter());
|
||||
TC_LOG_DEBUG("network", "Added FarSight %s to player %s", _player->GetGuidValue(PLAYER_FARSIGHT).ToString().c_str(), _player->GetGUID().ToString().c_str());
|
||||
if (WorldObject* target = _player->GetViewpoint())
|
||||
_player->SetSeer(target);
|
||||
else
|
||||
TC_LOG_DEBUG("network", "Player %s (%s) requests non-existing seer %s", _player->GetName().c_str(), _player->GetGUID().ToString().c_str(), _player->GetGuidValue(PLAYER_FARSIGHT).ToString().c_str());
|
||||
TC_LOG_DEBUG("network", "Player %s %s requests non-existing seer %s", _player->GetName().c_str(), _player->GetGUID().ToString().c_str(), _player->GetGuidValue(PLAYER_FARSIGHT).ToString().c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
TC_LOG_DEBUG("network", "Player %u set vision to self", _player->GetGUID().GetCounter());
|
||||
TC_LOG_DEBUG("network", "Player %s set vision to self", _player->GetGUID().ToString().c_str());
|
||||
_player->SetSeer(_player);
|
||||
}
|
||||
|
||||
@@ -1250,7 +1250,7 @@ void WorldSession::HandleSetDungeonDifficultyOpcode(WorldPacket& recvData)
|
||||
|
||||
if (mode >= MAX_DUNGEON_DIFFICULTY)
|
||||
{
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetDungeonDifficultyOpcode: player %d sent an invalid instance mode %d!", _player->GetGUID().GetCounter(), mode);
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetDungeonDifficultyOpcode: player %s sent an invalid instance mode %d!", _player->GetGUID().ToString().c_str(), mode);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1309,7 +1309,7 @@ void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket& recvData)
|
||||
|
||||
if (mode >= MAX_RAID_DIFFICULTY)
|
||||
{
|
||||
TC_LOG_ERROR("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %d sent an invalid instance mode %d!", _player->GetGUID().GetCounter(), mode);
|
||||
TC_LOG_ERROR("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %s sent an invalid instance mode %d!", _player->GetGUID().ToString().c_str(), mode);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1317,7 +1317,7 @@ void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket& recvData)
|
||||
Map* map = _player->FindMap();
|
||||
if (map && map->IsDungeon())
|
||||
{
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %d tried to reset the instance while inside!", _player->GetGUID().GetCounter());
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %s tried to reset the instance while inside!", _player->GetGUID().ToString().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1340,7 +1340,7 @@ void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket& recvData)
|
||||
|
||||
if (groupGuy->GetMap()->IsRaid())
|
||||
{
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %d tried to reset the instance while inside!", _player->GetGUID().GetCounter());
|
||||
TC_LOG_DEBUG("network", "WorldSession::HandleSetRaidDifficultyOpcode: player %s tried to reset the instance while inside!", _player->GetGUID().ToString().c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user