mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT * correct CheckCompactArrayMaskOverflow * 1 * Update src/server/game/Spells/Spell.cpp * rework logging * add fmt replace logs * logging * FMT_LOG_ * settings * fix startup * 1 * 2 * 3 * 4 * 5 * fmt::print * to fmt
This commit is contained in:
@@ -712,13 +712,13 @@ public:
|
||||
{
|
||||
if (spellId >= GetSpellInfoStoreSize())
|
||||
{
|
||||
LOG_ERROR("server", "spellId %u is not lower than GetSpellInfoStoreSize() (%u)", spellId, GetSpellInfoStoreSize());
|
||||
LOG_ERROR("server", "spellId {} is not lower than GetSpellInfoStoreSize() ({})", spellId, GetSpellInfoStoreSize());
|
||||
return nullptr;
|
||||
}
|
||||
SpellInfo const* spellInfo = mSpellInfoMap[spellId];
|
||||
if (!spellInfo)
|
||||
{
|
||||
LOG_ERROR("server", "spellId %u has invalid spellInfo", spellId);
|
||||
LOG_ERROR("server", "spellId {} has invalid spellInfo", spellId);
|
||||
return nullptr;
|
||||
}
|
||||
return spellInfo;
|
||||
|
||||
Reference in New Issue
Block a user