mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +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:
@@ -294,7 +294,7 @@ public:
|
||||
_mapEntry = sMapStore.LookupEntry(_mapId);
|
||||
|
||||
if (!_mapEntry)
|
||||
LOG_ERROR("maps.script", "Invalid MapScript for %u; no such map ID.", _mapId);
|
||||
LOG_ERROR("maps.script", "Invalid MapScript for {}; no such map ID.", _mapId);
|
||||
}
|
||||
|
||||
// Gets the MapEntry structure associated with this script. Can return nullptr.
|
||||
@@ -335,7 +335,7 @@ public:
|
||||
checkMap();
|
||||
|
||||
if (GetEntry() && !GetEntry()->IsWorldMap())
|
||||
LOG_ERROR("maps.script", "WorldMapScript for map %u is invalid.", GetEntry()->MapID);
|
||||
LOG_ERROR("maps.script", "WorldMapScript for map {} is invalid.", GetEntry()->MapID);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -352,7 +352,7 @@ public:
|
||||
checkMap();
|
||||
|
||||
if (GetEntry() && !GetEntry()->IsDungeon())
|
||||
LOG_ERROR("maps.script", "InstanceMapScript for map %u is invalid.", GetEntry()->MapID);
|
||||
LOG_ERROR("maps.script", "InstanceMapScript for map {} is invalid.", GetEntry()->MapID);
|
||||
}
|
||||
|
||||
// Gets an InstanceScript object for this instance.
|
||||
@@ -372,7 +372,7 @@ public:
|
||||
checkMap();
|
||||
|
||||
if (GetEntry() && !GetEntry()->IsBattleground())
|
||||
LOG_ERROR("maps.script", "BattlegroundMapScript for map %u is invalid.", GetEntry()->MapID);
|
||||
LOG_ERROR("maps.script", "BattlegroundMapScript for map {} is invalid.", GetEntry()->MapID);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2695,8 +2695,8 @@ public:
|
||||
{
|
||||
// The script uses a script name from database, but isn't assigned to anything.
|
||||
if (script->GetName().find("Smart") == std::string::npos)
|
||||
LOG_ERROR("sql.sql", "Script named '%s' is not assigned in the database.",
|
||||
script->GetName().c_str());
|
||||
LOG_ERROR("sql.sql", "Script named '{}' is not assigned in the database.",
|
||||
script->GetName());
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2729,8 +2729,8 @@ private:
|
||||
{
|
||||
if (it->second == script)
|
||||
{
|
||||
LOG_ERROR("scripts", "Script '%s' has same memory pointer as '%s'.",
|
||||
script->GetName().c_str(), it->second->GetName().c_str());
|
||||
LOG_ERROR("scripts", "Script '{}' has same memory pointer as '{}'.",
|
||||
script->GetName(), it->second->GetName());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user