mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging * correct level for sql.sql * del unused config options * Correct build * correct after merge * whitespace 20:29:37 1. 'Player.cpp'. Replace (1) 20:29:37 2. 'ObjectMgr.cpp'. Replace (3) * 1 * correct logging * correct affter merge * 1 * 2 * LOG_LEVEL_WARN * #include "AppenderDB.h" * 3 * 4 * 5 * 1. 'WorldSocket.cpp'. Replace (1) * 6 * 1
This commit is contained in:
@@ -100,7 +100,7 @@ void Guild::SendCommandResult(WorldSession* session, GuildCommandType type, Guil
|
||||
session->SendPacket(&data);
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_COMMAND_RESULT [%s]: Type: %u, code: %u, param: %s", session->GetPlayerInfo().c_str(), type, errCode, param.c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_COMMAND_RESULT [%s]: Type: %u, code: %u, param: %s", session->GetPlayerInfo().c_str(), type, errCode, param.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ void Guild::SendSaveEmblemResult(WorldSession* session, GuildEmblemError errCode
|
||||
session->SendPacket(&data);
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_SAVE_GUILD_EMBLEM [%s] Code: %u", session->GetPlayerInfo().c_str(), errCode);
|
||||
LOG_DEBUG("guild", "MSG_SAVE_GUILD_EMBLEM [%s] Code: %u", session->GetPlayerInfo().c_str(), errCode);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ void Guild::RankInfo::CreateMissingTabsIfNeeded(uint8 tabs, SQLTransaction& tran
|
||||
rightsAndSlots.SetGuildMasterValues();
|
||||
|
||||
if (logOnCreate)
|
||||
sLog->outError("Guild %u has broken Tab %u for rank %u. Created default tab.", m_guildId, i, m_rankId);
|
||||
LOG_ERROR("server", "Guild %u has broken Tab %u for rank %u. Created default tab.", m_guildId, i, m_rankId);
|
||||
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_GUILD_BANK_RIGHT);
|
||||
stmt->setUInt32(0, m_guildId);
|
||||
@@ -397,21 +397,21 @@ bool Guild::BankTab::LoadItemFromDB(Field* fields)
|
||||
uint32 itemEntry = fields[15].GetUInt32();
|
||||
if (slotId >= GUILD_BANK_MAX_SLOTS)
|
||||
{
|
||||
sLog->outError("Invalid slot for item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
LOG_ERROR("server", "Invalid slot for item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
return false;
|
||||
}
|
||||
|
||||
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(itemEntry);
|
||||
if (!proto)
|
||||
{
|
||||
sLog->outError("Unknown item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
LOG_ERROR("server", "Unknown item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
return false;
|
||||
}
|
||||
|
||||
Item* pItem = NewItemOrBag(proto);
|
||||
if (!pItem->LoadFromDB(itemGuid, 0, fields, itemEntry))
|
||||
{
|
||||
sLog->outError("Item (GUID %u, id: %u) not found in item_instance, deleting from guild bank!", itemGuid, itemEntry);
|
||||
LOG_ERROR("server", "Item (GUID %u, id: %u) not found in item_instance, deleting from guild bank!", itemGuid, itemEntry);
|
||||
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_NONEXISTENT_GUILD_BANK_ITEM);
|
||||
stmt->setUInt32(0, m_guildId);
|
||||
@@ -571,7 +571,7 @@ void Guild::BankTab::SendText(Guild const* guild, WorldSession* session) const
|
||||
if (session)
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [%s]: Tabid: %u, Text: %s"
|
||||
LOG_DEBUG("guild", "MSG_QUERY_GUILD_BANK_TEXT [%s]: Tabid: %u, Text: %s"
|
||||
, session->GetPlayerInfo().c_str(), m_tabId, m_text.c_str());
|
||||
#endif
|
||||
session->SendPacket(&data);
|
||||
@@ -579,7 +579,7 @@ void Guild::BankTab::SendText(Guild const* guild, WorldSession* session) const
|
||||
else
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [Broadcast]: Tabid: %u, Text: %s", m_tabId, m_text.c_str());
|
||||
LOG_DEBUG("guild", "MSG_QUERY_GUILD_BANK_TEXT [Broadcast]: Tabid: %u, Text: %s", m_tabId, m_text.c_str());
|
||||
#endif
|
||||
guild->BroadcastPacket(&data);
|
||||
}
|
||||
@@ -681,7 +681,7 @@ bool Guild::Member::LoadFromDB(Field* fields)
|
||||
|
||||
if (!m_zoneId)
|
||||
{
|
||||
sLog->outError("Player (GUID: %u) has broken zone-data", GUID_LOPART(m_guid));
|
||||
LOG_ERROR("server", "Player (GUID: %u) has broken zone-data", GUID_LOPART(m_guid));
|
||||
m_zoneId = Player::GetZoneIdFromDB(m_guid);
|
||||
}
|
||||
ResetFlags();
|
||||
@@ -693,13 +693,13 @@ bool Guild::Member::CheckStats() const
|
||||
{
|
||||
if (m_level < 1)
|
||||
{
|
||||
sLog->outError("Player (GUID: %u) has a broken data in field `characters`.`level`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
LOG_ERROR("server", "Player (GUID: %u) has a broken data in field `characters`.`level`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_class < CLASS_WARRIOR || m_class >= MAX_CLASSES)
|
||||
{
|
||||
sLog->outError("Player (GUID: %u) has a broken data in field `characters`.`class`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
LOG_ERROR("server", "Player (GUID: %u) has a broken data in field `characters`.`class`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -970,7 +970,7 @@ Item* Guild::BankMoveItemData::StoreItem(SQLTransaction& trans, Item* pItem)
|
||||
++itr;
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
LOG_DEBUG("guild", "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
#endif
|
||||
pLastItem = _StoreItem(trans, pTab, pItem, pos, itr != m_vec.end());
|
||||
@@ -1075,7 +1075,7 @@ void Guild::BankMoveItemData::CanStoreItemInTab(Item* pItem, uint8 skipSlotId, b
|
||||
InventoryResult Guild::BankMoveItemData::CanStore(Item* pItem, bool swap)
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
LOG_DEBUG("guild", "GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
#endif
|
||||
uint32 count = pItem->GetCount();
|
||||
@@ -1174,7 +1174,7 @@ bool Guild::Create(Player* pLeader, std::string const& name)
|
||||
_CreateLogHolders();
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD: creating guild [%s] for leader %s (%u)",
|
||||
LOG_DEBUG("guild", "GUILD: creating guild [%s] for leader %s (%u)",
|
||||
name.c_str(), pLeader->GetName().c_str(), GUID_LOPART(m_leaderGuid));
|
||||
#endif
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
@@ -1278,7 +1278,7 @@ void Guild::UpdateMemberData(Player* player, uint8 dataid, uint32 value)
|
||||
member->SetLevel(value);
|
||||
break;
|
||||
default:
|
||||
sLog->outError("Guild::UpdateMemberData: Called with incorrect DATAID %u (value %u)", dataid, value);
|
||||
LOG_ERROR("server", "Guild::UpdateMemberData: Called with incorrect DATAID %u (value %u)", dataid, value);
|
||||
return;
|
||||
}
|
||||
//HandleRoster();
|
||||
@@ -1311,7 +1311,7 @@ void Guild::HandleRoster(WorldSession* session)
|
||||
itr->second->WritePacket(data, _HasRankRight(session->GetPlayer(), GR_RIGHT_VIEWOFFNOTE));
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_ROSTER [%s]", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_ROSTER [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
session->SendPacket(&data);
|
||||
}
|
||||
@@ -1336,7 +1336,7 @@ void Guild::HandleQuery(WorldSession* session)
|
||||
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_QUERY_RESPONSE [%s]", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_QUERY_RESPONSE [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1426,7 +1426,7 @@ void Guild::HandleSetBankTabInfo(WorldSession* session, uint8 tabId, std::string
|
||||
BankTab* tab = GetBankTab(tabId);
|
||||
if (!tab)
|
||||
{
|
||||
sLog->outError("Guild::HandleSetBankTabInfo: Player %s trying to change bank tab info from unexisting tab %d.",
|
||||
LOG_ERROR("server", "Guild::HandleSetBankTabInfo: Player %s trying to change bank tab info from unexisting tab %d.",
|
||||
session->GetPlayerInfo().c_str(), tabId);
|
||||
return;
|
||||
}
|
||||
@@ -1459,7 +1459,7 @@ void Guild::HandleSetRankInfo(WorldSession* session, uint8 rankId, std::string c
|
||||
else if (RankInfo* rankInfo = GetRankInfo(rankId))
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
LOG_DEBUG("guild", "Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
#endif
|
||||
|
||||
rankInfo->SetName(name);
|
||||
@@ -1545,7 +1545,7 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
||||
SendCommandResult(session, GUILD_COMMAND_INVITE, ERR_GUILD_COMMAND_SUCCESS, name);
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Player %s invited %s to join his Guild", player->GetName().c_str(), name.c_str());
|
||||
LOG_DEBUG("guild", "Player %s invited %s to join his Guild", player->GetName().c_str(), name.c_str());
|
||||
#endif
|
||||
|
||||
pInvitee->SetGuildIdInvited(m_id);
|
||||
@@ -1556,7 +1556,7 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
||||
data << m_name;
|
||||
pInvitee->GetSession()->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INVITE [%s]", pInvitee->GetName().c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_INVITE [%s]", pInvitee->GetName().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1813,7 +1813,7 @@ void Guild::HandleDisband(WorldSession* session)
|
||||
{
|
||||
Disband();
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Guild Successfully Disbanded");
|
||||
LOG_DEBUG("guild", "Guild Successfully Disbanded");
|
||||
#endif
|
||||
delete this;
|
||||
}
|
||||
@@ -1830,7 +1830,7 @@ void Guild::SendInfo(WorldSession* session) const
|
||||
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INFO [%s]", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_INFO [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1840,7 +1840,7 @@ void Guild::SendEventLog(WorldSession* session) const
|
||||
m_eventLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_EVENT_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "MSG_GUILD_EVENT_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1855,7 +1855,7 @@ void Guild::SendBankLog(WorldSession* session, uint8 tabId) const
|
||||
pLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "MSG_GUILD_BANK_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -1898,7 +1898,7 @@ void Guild::SendPermissions(WorldSession* session) const
|
||||
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_PERMISSIONS [%s] Rank: %u", session->GetPlayerInfo().c_str(), rankId);
|
||||
LOG_DEBUG("guild", "MSG_GUILD_PERMISSIONS [%s] Rank: %u", session->GetPlayerInfo().c_str(), rankId);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1913,7 +1913,7 @@ void Guild::SendMoneyInfo(WorldSession* session) const
|
||||
data << int32(amount);
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_MONEY_WITHDRAWN [%s] Money: %u", session->GetPlayerInfo().c_str(), amount);
|
||||
LOG_DEBUG("guild", "MSG_GUILD_BANK_MONEY_WITHDRAWN [%s] Money: %u", session->GetPlayerInfo().c_str(), amount);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1926,7 +1926,7 @@ void Guild::SendLoginInfo(WorldSession* session)
|
||||
session->SendPacket(&data);
|
||||
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [%s] MOTD", session->GetPlayerInfo().c_str());
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_EVENT [%s] MOTD", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
|
||||
SendBankTabsInfo(session);
|
||||
@@ -2032,13 +2032,13 @@ bool Guild::LoadBankEventLogFromDB(Field* fields)
|
||||
{
|
||||
if (!isMoneyTab)
|
||||
{
|
||||
sLog->outError("GuildBankEventLog ERROR: MoneyEvent(LogGuid: %u, Guild: %u) does not belong to money tab (%u), ignoring...", guid, m_id, dbTabId);
|
||||
LOG_ERROR("server", "GuildBankEventLog ERROR: MoneyEvent(LogGuid: %u, Guild: %u) does not belong to money tab (%u), ignoring...", guid, m_id, dbTabId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (isMoneyTab)
|
||||
{
|
||||
sLog->outError("GuildBankEventLog ERROR: non-money event (LogGuid: %u, Guild: %u) belongs to money tab, ignoring...", guid, m_id);
|
||||
LOG_ERROR("server", "GuildBankEventLog ERROR: non-money event (LogGuid: %u, Guild: %u) belongs to money tab, ignoring...", guid, m_id);
|
||||
return false;
|
||||
}
|
||||
pLog->LoadEvent(new BankEventLogEntry(
|
||||
@@ -2060,7 +2060,7 @@ void Guild::LoadBankTabFromDB(Field* fields)
|
||||
{
|
||||
uint8 tabId = fields[1].GetUInt8();
|
||||
if (tabId >= _GetPurchasedTabsSize())
|
||||
sLog->outError("Invalid tab (tabId: %u) in guild bank, skipped.", tabId);
|
||||
LOG_ERROR("server", "Invalid tab (tabId: %u) in guild bank, skipped.", tabId);
|
||||
else
|
||||
m_bankTabs[tabId]->LoadFromDB(fields);
|
||||
}
|
||||
@@ -2070,7 +2070,7 @@ bool Guild::LoadBankItemFromDB(Field* fields)
|
||||
uint8 tabId = fields[12].GetUInt8();
|
||||
if (tabId >= _GetPurchasedTabsSize())
|
||||
{
|
||||
sLog->outError("Invalid tab for item (GUID: %u, id: #%u) in guild bank, skipped.",
|
||||
LOG_ERROR("server", "Invalid tab for item (GUID: %u, id: #%u) in guild bank, skipped.",
|
||||
fields[14].GetUInt32(), fields[15].GetUInt32());
|
||||
return false;
|
||||
}
|
||||
@@ -2089,7 +2089,7 @@ bool Guild::Validate()
|
||||
uint8 ranks = _GetRanksSize();
|
||||
if (ranks < GUILD_RANKS_MIN_COUNT || ranks > GUILD_RANKS_MAX_COUNT)
|
||||
{
|
||||
sLog->outError("Guild %u has invalid number of ranks, creating new...", m_id);
|
||||
LOG_ERROR("server", "Guild %u has invalid number of ranks, creating new...", m_id);
|
||||
broken_ranks = true;
|
||||
}
|
||||
else
|
||||
@@ -2099,7 +2099,7 @@ bool Guild::Validate()
|
||||
RankInfo* rankInfo = GetRankInfo(rankId);
|
||||
if (rankInfo->GetId() != rankId)
|
||||
{
|
||||
sLog->outError("Guild %u has broken rank id %u, creating default set of ranks...", m_id, rankId);
|
||||
LOG_ERROR("server", "Guild %u has broken rank id %u, creating default set of ranks...", m_id, rankId);
|
||||
broken_ranks = true;
|
||||
}
|
||||
else
|
||||
@@ -2702,14 +2702,6 @@ void Guild::_MoveItems(MoveItemData* pSrc, MoveItemData* pDest, uint32 splitedAm
|
||||
// 2. Check source item
|
||||
if (!pSrc->CheckItem(splitedAmount))
|
||||
return; // Source item or splited amount is invalid
|
||||
/*
|
||||
if (pItemSrc->GetCount() == 0)
|
||||
{
|
||||
sLog->outFatal(LOG_FILTER_GUILD, "Guild::SwapItems: Player %s(GUIDLow: %u) tried to move item %u from tab %u slot %u to tab %u slot %u, but item %u has a stack of zero!",
|
||||
player->GetName().c_str(), player->GetGUIDLow(), pItemSrc->GetEntry(), tabId, slotId, destTabId, destSlotId, pItemSrc->GetEntry());
|
||||
//return; // Commented out for now, uncomment when it's verified that this causes a crash!!
|
||||
}
|
||||
// */
|
||||
|
||||
// 3. Check destination rights
|
||||
if (!pDest->HasStoreRights(pSrc))
|
||||
@@ -2869,7 +2861,7 @@ void Guild::_BroadcastEvent(GuildEvents guildEvent, uint64 guid, const char* par
|
||||
|
||||
BroadcastPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [Broadcast] Event: %u", guildEvent);
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_EVENT [Broadcast] Event: %u", guildEvent);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2914,7 +2906,7 @@ void Guild::_SendBankList(WorldSession* session /* = nullptr*/, uint8 tabId /*=
|
||||
data.put<uint32>(rempos, numSlots);
|
||||
session->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %d",
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %d",
|
||||
session->GetPlayerInfo().c_str(), tabId, sendAllSlots, numSlots);
|
||||
#endif
|
||||
}
|
||||
@@ -2932,7 +2924,7 @@ void Guild::_SendBankList(WorldSession* session /* = nullptr*/, uint8 tabId /*=
|
||||
data.put<uint32>(rempos, numSlots);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %u"
|
||||
LOG_DEBUG("guild", "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %u"
|
||||
, player->GetName().c_str(), tabId, sendAllSlots, numSlots);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user