Core/Logging: Enable perfect forwarding for logging format and args.
* Handle timestamp parsing though cppformat. * Change a wrong forward -> move (cherry picked from commit 026ceb85b9e0e870d95cea42895e867198c156dd)
This commit is contained in:
1 parent
b0255927f0
commit
e011ae63d5
3 files changed
+32
-13
No files matched your search
@@ -317,7 +317,15 @@ void Map::SwitchGridContainers(Creature* obj, bool on)
|
||||
if (!IsGridLoaded(GridCoord(cell.data.Part.grid_x, cell.data.Part.grid_y)))
|
||||
return;
|
||||
|
||||
TC_LOG_DEBUG("maps", "Switch object %s from grid[%u, %u] %u", obj->GetGUID().ToString().c_str(), cell.data.Part.grid_x, cell.data.Part.grid_y, on);
|
||||
if (sLog->ShouldLog("maps", LOG_LEVEL_DEBUG))
|
||||
{
|
||||
// Extract bitfield values
|
||||
uint32 const grid_x = cell.data.Part.grid_x;
|
||||
uint32 const grid_y = cell.data.Part.grid_y;
|
||||
|
||||
TC_LOG_DEBUG("maps", "Switch object %s from grid[%u, %u] %u", obj->GetGUID().ToString().c_str(), grid_x, grid_y, on);
|
||||
}
|
||||
|
||||
NGridType *ngrid = getNGrid(cell.GridX(), cell.GridY());
|
||||
ASSERT(ngrid != NULL);
|
||||
|
||||
@@ -354,7 +362,15 @@ void Map::SwitchGridContainers(GameObject* obj, bool on)
|
||||
if (!IsGridLoaded(GridCoord(cell.data.Part.grid_x, cell.data.Part.grid_y)))
|
||||
return;
|
||||
|
||||
TC_LOG_DEBUG("maps", "Switch object %s from grid[%u, %u] %u", obj->GetGUID().ToString().c_str(), cell.data.Part.grid_x, cell.data.Part.grid_y, on);
|
||||
if (sLog->ShouldLog("maps", LOG_LEVEL_DEBUG))
|
||||
{
|
||||
// Extract bitfield values
|
||||
uint32 const grid_x = cell.data.Part.grid_x;
|
||||
uint32 const grid_y = cell.data.Part.grid_y;
|
||||
|
||||
TC_LOG_DEBUG("maps", "Switch object %s from grid[%u, %u] %u", obj->GetGUID().ToString().c_str(), grid_x, grid_y, on);
|
||||
}
|
||||
|
||||
NGridType *ngrid = getNGrid(cell.GridX(), cell.GridY());
|
||||
ASSERT(ngrid != NULL);
|
||||
|
||||
|
||||
Reference in new issue
Block a user