From 048ddf6a346f2f308de703aeb3b4b22c418c6f25 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 26 Feb 2017 18:06:26 +0200 Subject: [PATCH] [Server] Use LOG_APPEND for older debug messages in Cell --- apps/openmw-mp/Cell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index 9819c015a..21a9700b1 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -161,7 +161,8 @@ Cell *CellController::getCellByName(std::string cellName) Cell *CellController::addCell(ESM::Cell cellData) { - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Loaded cells: %d", cells.size()); + LOG_APPEND(Log::LOG_INFO, "- Loaded cells: %d", + cells.size()); auto it = find_if(cells.begin(), cells.end(), [cellData](const Cell *c) { //return c->cell.sRecordId == cellData.sRecordId; // Currently we cannot compare because plugin lists can be loaded in different order return c->cell.isExterior() ? (c->cell.mData.mX == cellData.mData.mX && c->cell.mData.mY == cellData.mData.mY) : @@ -215,8 +216,8 @@ void CellController::removePlayer(Cell *cell, Player *player) if (cell->players.empty()) { - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Deleting empty cell from memory: %s", player->npc.mName.c_str(), - player->getId(), cell->cell.getDescription().c_str()); + LOG_APPEND(Log::LOG_INFO, "- Deleting empty cell from memory: %s", + cell->getDescription().c_str()); auto it = find(cells.begin(), cells.end(), cell); delete *it; cells.erase(it); @@ -259,7 +260,6 @@ void CellController::update(Player *player) } else { - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Player %s (%d) unloaded cell: %s", player->npc.mName.c_str(), player->getId(), cell.cell.getDescription().c_str()); Cell *c; if (!cell.cell.isExterior()) c = getCellByName(cell.cell.mName);