mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Merge pull request #627 from EricksOliveira/patch-1
Fix Logs LOG_ERROR for LOG_DEBUG
This commit is contained in:
@@ -100,8 +100,8 @@ void PlayerbotHolder::HandlePlayerBotLoginCallback(PlayerbotLoginQueryHolder con
|
|||||||
Player* bot = botSession->GetPlayer();
|
Player* bot = botSession->GetPlayer();
|
||||||
if (!bot)
|
if (!bot)
|
||||||
{
|
{
|
||||||
// Log para debug
|
// Debug log
|
||||||
LOG_ERROR("mod-playerbots", "Bot player could not be loaded for account ID: {}", botAccountId);
|
LOG_DEBUG("mod-playerbots", "Bot player could not be loaded for account ID: {}", botAccountId);
|
||||||
botSession->LogoutPlayer(true);
|
botSession->LogoutPlayer(true);
|
||||||
delete botSession;
|
delete botSession;
|
||||||
botLoading.erase(holder.GetGuid());
|
botLoading.erase(holder.GetGuid());
|
||||||
@@ -115,7 +115,7 @@ void PlayerbotHolder::HandlePlayerBotLoginCallback(PlayerbotLoginQueryHolder con
|
|||||||
Player* masterPlayer = masterSession ? masterSession->GetPlayer() : nullptr;
|
Player* masterPlayer = masterSession ? masterSession->GetPlayer() : nullptr;
|
||||||
if (masterSession && !masterPlayer)
|
if (masterSession && !masterPlayer)
|
||||||
{
|
{
|
||||||
LOG_ERROR("mod-playerbots", "Master session found but no player is associated for master account ID: {}", masterAccount);
|
LOG_DEBUG("mod-playerbots", "Master session found but no player is associated for master account ID: {}", masterAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
@@ -144,7 +144,7 @@ void PlayerbotHolder::HandlePlayerBotLoginCallback(PlayerbotLoginQueryHolder con
|
|||||||
PlayerbotMgr* mgr = GET_PLAYERBOT_MGR(masterPlayer);
|
PlayerbotMgr* mgr = GET_PLAYERBOT_MGR(masterPlayer);
|
||||||
if (!mgr)
|
if (!mgr)
|
||||||
{
|
{
|
||||||
LOG_ERROR("mod-playerbots", "PlayerbotMgr not found for master player with GUID: {}", masterPlayer->GetGUID().GetRawValue());
|
LOG_DEBUG("mod-playerbots", "PlayerbotMgr not found for master player with GUID: {}", masterPlayer->GetGUID().GetRawValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 count = mgr->GetPlayerbotsCount();
|
uint32 count = mgr->GetPlayerbotsCount();
|
||||||
@@ -443,7 +443,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
|||||||
if (!botAI)
|
if (!botAI)
|
||||||
{
|
{
|
||||||
// Log a warning here to indicate that the botAI is null
|
// Log a warning here to indicate that the botAI is null
|
||||||
LOG_ERROR("mod-playerbots", "PlayerbotAI is null for bot with GUID: {}", bot->GetGUID().GetRawValue());
|
LOG_DEBUG("mod-playerbots", "PlayerbotAI is null for bot with GUID: {}", bot->GetGUID().GetRawValue());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,7 +451,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
|||||||
if (!master)
|
if (!master)
|
||||||
{
|
{
|
||||||
// Log a warning to indicate that the master is null
|
// Log a warning to indicate that the master is null
|
||||||
LOG_ERROR("mod-playerbots", "Master is null for bot with GUID: {}", bot->GetGUID().GetRawValue());
|
LOG_DEBUG("mod-playerbots", "Master is null for bot with GUID: {}", bot->GetGUID().GetRawValue());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user