game: remove duplicate initial-spells LOG_INFO and downgrade debug spell list

- world_packets.cpp::InitialSpellsParser::parse already logs spell count
  at LOG_INFO; remove the duplicate count from handleInitialSpells()
- Downgrade verbose format-detection LOG_INFO to LOG_DEBUG (packet size,
  format name, first-10 spell IDs) — these are diagnostic details that
  clutter INFO output without adding operational value
This commit is contained in:
Kelsi 2026-03-10 04:52:22 -07:00
parent 4972472b2a
commit 4dab5daf79
2 changed files with 3 additions and 5 deletions

View file

@ -12770,7 +12770,6 @@ void GameHandler::handleInitialSpells(network::Packet& packet) {
knownSpells = {data.spellIds.begin(), data.spellIds.end()};
LOG_INFO("SMSG_INITIAL_SPELLS: ", knownSpells.size(), " spells");
LOG_DEBUG("Initial spells include: 527=", knownSpells.count(527u),
" 988=", knownSpells.count(988u), " 1180=", knownSpells.count(1180u));

View file

@ -2839,8 +2839,8 @@ bool InitialSpellsParser::parse(network::Packet& packet, InitialSpellsData& data
size_t remainingAfterHeader = packetSize - 3; // subtract talentSpec(1) + spellCount(2)
bool vanillaFormat = remainingAfterHeader < static_cast<size_t>(spellCount) * 6 + 2;
LOG_INFO("SMSG_INITIAL_SPELLS: packetSize=", packetSize, " bytes, spellCount=", spellCount,
vanillaFormat ? " (vanilla uint16 format)" : " (WotLK uint32 format)");
LOG_DEBUG("SMSG_INITIAL_SPELLS: packetSize=", packetSize, " bytes, spellCount=", spellCount,
vanillaFormat ? " (vanilla uint16 format)" : " (WotLK uint32 format)");
data.spellIds.reserve(spellCount);
for (uint16_t i = 0; i < spellCount; ++i) {
@ -2876,14 +2876,13 @@ bool InitialSpellsParser::parse(network::Packet& packet, InitialSpellsData& data
LOG_INFO("Initial spells parsed: ", data.spellIds.size(), " spells, ",
data.cooldowns.size(), " cooldowns");
// Log first 10 spell IDs for debugging
if (!data.spellIds.empty()) {
std::string first10;
for (size_t i = 0; i < std::min(size_t(10), data.spellIds.size()); ++i) {
if (!first10.empty()) first10 += ", ";
first10 += std::to_string(data.spellIds[i]);
}
LOG_INFO("First spells: ", first10);
LOG_DEBUG("Initial spell IDs (first 10): ", first10);
}
return true;