changed DISABLED_ cmake variable to ENABLED_ and implemented for all disabled logs
This commit is contained in:
parent
f888e8c86b
commit
c1586e0d99
109 changed files with 3620 additions and 1228 deletions
|
|
@ -92,7 +92,9 @@ void Guild::SendCommandResult(WorldSession* session, GuildCommandType type, Guil
|
|||
data << uint32(errCode);
|
||||
session->SendPacket(&data);
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_COMMAND_RESULT [%s]: Type: %u, code: %u, param: %s"
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_COMMAND_RESULT [%s]: Type: %u, code: %u, param: %s"
|
||||
#endif
|
||||
// , session->GetPlayerInfo().c_str(), type, errCode, param.c_str());
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +104,9 @@ void Guild::SendSaveEmblemResult(WorldSession* session, GuildEmblemError errCode
|
|||
data << uint32(errCode);
|
||||
session->SendPacket(&data);
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_SAVE_GUILD_EMBLEM [%s] Code: %u", session->GetPlayerInfo().c_str(), errCode);
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_SAVE_GUILD_EMBLEM [%s] Code: %u", session->GetPlayerInfo().c_str(), errCode);
|
||||
#endif
|
||||
}
|
||||
|
||||
// LogHolder
|
||||
|
|
@ -561,13 +565,17 @@ void Guild::BankTab::SendText(Guild const* guild, WorldSession* session) const
|
|||
|
||||
if (session)
|
||||
{
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [%s]: Tabid: %u, Text: %s"
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [%s]: Tabid: %u, Text: %s"
|
||||
#endif
|
||||
// , session->GetPlayerInfo().c_str(), m_tabId, m_text.c_str());
|
||||
session->SendPacket(&data);
|
||||
}
|
||||
else
|
||||
{
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [Broadcast]: Tabid: %u, Text: %s", m_tabId, m_text.c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_QUERY_GUILD_BANK_TEXT [Broadcast]: Tabid: %u, Text: %s", m_tabId, m_text.c_str());
|
||||
#endif
|
||||
guild->BroadcastPacket(&data);
|
||||
}
|
||||
}
|
||||
|
|
@ -953,7 +961,9 @@ Item* Guild::BankMoveItemData::StoreItem(SQLTransaction& trans, Item* pItem)
|
|||
ItemPosCount pos(*itr);
|
||||
++itr;
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
#endif
|
||||
// m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
pLastItem = _StoreItem(trans, pTab, pItem, pos, itr != m_vec.end());
|
||||
}
|
||||
|
|
@ -1056,7 +1066,9 @@ void Guild::BankMoveItemData::CanStoreItemInTab(Item* pItem, uint8 skipSlotId, b
|
|||
|
||||
InventoryResult Guild::BankMoveItemData::CanStore(Item* pItem, bool swap)
|
||||
{
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
#endif
|
||||
// m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
|
||||
uint32 count = pItem->GetCount();
|
||||
|
|
@ -1154,7 +1166,9 @@ bool Guild::Create(Player* pLeader, std::string const& name)
|
|||
m_createdDate = ::time(NULL);
|
||||
_CreateLogHolders();
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "GUILD: creating guild [%s] for leader %s (%u)",
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "GUILD: creating guild [%s] for leader %s (%u)",
|
||||
#endif
|
||||
// name.c_str(), pLeader->GetName().c_str(), GUID_LOPART(m_leaderGuid));
|
||||
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
|
|
@ -1286,7 +1300,9 @@ void Guild::HandleRoster(WorldSession* session)
|
|||
itr->second->WritePacket(data, _HasRankRight(session->GetPlayer(), GR_RIGHT_VIEWOFFNOTE));
|
||||
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_ROSTER [%s]", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_ROSTER [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
session->SendPacket(&data);
|
||||
}
|
||||
|
||||
|
|
@ -1309,7 +1325,9 @@ void Guild::HandleQuery(WorldSession* session)
|
|||
data << uint32(_GetRanksSize()); // Number of ranks used
|
||||
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_QUERY_RESPONSE [%s]", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_QUERY_RESPONSE [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::HandleSetMOTD(WorldSession* session, std::string const& motd)
|
||||
|
|
@ -1433,7 +1451,9 @@ void Guild::HandleSetRankInfo(WorldSession* session, uint8 rankId, std::string c
|
|||
SendCommandResult(session, GUILD_COMMAND_CHANGE_RANK, ERR_GUILD_PERMISSIONS);
|
||||
else if (RankInfo* rankInfo = GetRankInfo(rankId))
|
||||
{
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
#endif
|
||||
|
||||
rankInfo->SetName(name);
|
||||
rankInfo->SetRights(rights);
|
||||
|
|
@ -1519,7 +1539,9 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
|||
|
||||
SendCommandResult(session, GUILD_COMMAND_INVITE, ERR_GUILD_COMMAND_SUCCESS, name);
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "Player %s invited %s to join his Guild", player->GetName().c_str(), name.c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Player %s invited %s to join his Guild", player->GetName().c_str(), name.c_str());
|
||||
#endif
|
||||
|
||||
pInvitee->SetGuildIdInvited(m_id);
|
||||
_LogEvent(GUILD_EVENT_LOG_INVITE_PLAYER, player->GetGUIDLow(), pInvitee->GetGUIDLow());
|
||||
|
|
@ -1528,7 +1550,9 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
|||
data << player->GetName();
|
||||
data << m_name;
|
||||
pInvitee->GetSession()->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INVITE [%s]", pInvitee->GetName().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INVITE [%s]", pInvitee->GetName().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::HandleAcceptMember(WorldSession* session)
|
||||
|
|
@ -1787,7 +1811,9 @@ void Guild::HandleDisband(WorldSession* session)
|
|||
if (_IsLeader(session->GetPlayer()))
|
||||
{
|
||||
Disband();
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "Guild Successfully Disbanded");
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "Guild Successfully Disbanded");
|
||||
#endif
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
|
|
@ -1802,7 +1828,9 @@ void Guild::SendInfo(WorldSession* session) const
|
|||
data << m_accountsNumber; // Number of accounts
|
||||
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INFO [%s]", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_INFO [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::SendEventLog(WorldSession* session) const
|
||||
|
|
@ -1810,7 +1838,9 @@ void Guild::SendEventLog(WorldSession* session) const
|
|||
WorldPacket data(MSG_GUILD_EVENT_LOG_QUERY, 1 + m_eventLog->GetSize() * (1 + 8 + 4));
|
||||
m_eventLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_EVENT_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_EVENT_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::SendBankLog(WorldSession* session, uint8 tabId) const
|
||||
|
|
@ -1823,7 +1853,9 @@ void Guild::SendBankLog(WorldSession* session, uint8 tabId) const
|
|||
data << uint8(tabId);
|
||||
pLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_LOG_QUERY [%s]", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1864,7 +1896,9 @@ void Guild::SendPermissions(WorldSession* session) const
|
|||
}
|
||||
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_PERMISSIONS [%s] Rank: %u", session->GetPlayerInfo().c_str(), rankId);
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_PERMISSIONS [%s] Rank: %u", session->GetPlayerInfo().c_str(), rankId);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::SendMoneyInfo(WorldSession* session) const
|
||||
|
|
@ -1877,7 +1911,9 @@ void Guild::SendMoneyInfo(WorldSession* session) const
|
|||
WorldPacket data(MSG_GUILD_BANK_MONEY_WITHDRAWN, 4);
|
||||
data << int32(amount);
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_MONEY_WITHDRAWN [%s] Money: %u", session->GetPlayerInfo().c_str(), amount);
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "MSG_GUILD_BANK_MONEY_WITHDRAWN [%s] Money: %u", session->GetPlayerInfo().c_str(), amount);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::SendLoginInfo(WorldSession* session)
|
||||
|
|
@ -1888,7 +1924,9 @@ void Guild::SendLoginInfo(WorldSession* session)
|
|||
data << m_motd;
|
||||
session->SendPacket(&data);
|
||||
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [%s] MOTD", session->GetPlayerInfo().c_str());
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [%s] MOTD", session->GetPlayerInfo().c_str());
|
||||
#endif
|
||||
|
||||
SendBankTabsInfo(session);
|
||||
|
||||
|
|
@ -2825,7 +2863,9 @@ void Guild::_BroadcastEvent(GuildEvents guildEvent, uint64 guid, const char* par
|
|||
data << uint64(guid);
|
||||
|
||||
BroadcastPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [Broadcast] Event: %u", guildEvent);
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_EVENT [Broadcast] Event: %u", guildEvent);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Guild::_SendBankList(WorldSession* session /* = NULL*/, uint8 tabId /*= 0*/, bool sendAllSlots /*= false*/, SlotIds *slots /*= NULL*/) const
|
||||
|
|
@ -2865,7 +2905,9 @@ void Guild::_SendBankList(WorldSession* session /* = NULL*/, uint8 tabId /*= 0*/
|
|||
numSlots = _GetMemberRemainingSlots(member, tabId);
|
||||
data.put<uint32>(rempos, numSlots);
|
||||
session->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %d",
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %d",
|
||||
#endif
|
||||
// session->GetPlayerInfo().c_str(), tabId, sendAllSlots, numSlots);
|
||||
}
|
||||
else // TODO - Probably this is just sent to session + those that have sent CMSG_GUILD_BANKER_ACTIVATE
|
||||
|
|
@ -2881,7 +2923,9 @@ void Guild::_SendBankList(WorldSession* session /* = NULL*/, uint8 tabId /*= 0*/
|
|||
uint32 numSlots = _GetMemberRemainingSlots(itr->second, tabId);
|
||||
data.put<uint32>(rempos, numSlots);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
;//sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %u"
|
||||
#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
|
||||
sLog->outDebug(LOG_FILTER_GUILD, "SMSG_GUILD_BANK_LIST [%s]: TabId: %u, FullSlots: %u, slots: %u"
|
||||
#endif
|
||||
// , player->GetName().c_str(), tabId, sendAllSlots, numSlots);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue