From b69e6b96e65ce56914c4cf3a8dab4b1f46affeb7 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 23 Jul 2018 22:11:59 +0300 Subject: [PATCH] [Client] Use verbose logging level for LocalActor debug --- apps/openmw/mwmp/Cell.cpp | 18 +++++++++--------- apps/openmw/mwmp/LocalActor.cpp | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/openmw/mwmp/Cell.cpp b/apps/openmw/mwmp/Cell.cpp index 026ea62ab..a8884842b 100644 --- a/apps/openmw/mwmp/Cell.cpp +++ b/apps/openmw/mwmp/Cell.cpp @@ -64,7 +64,7 @@ void Cell::updateLocal(bool forceUpdate) // If the cell this actor has moved to is under our authority, move them to it if (cellController->hasLocalAuthority(actor->cell)) { - LOG_APPEND(Log::LOG_INFO, "- Moving LocalActor %s to our authority in %s", + LOG_APPEND(Log::LOG_VERBOSE, "- Moving LocalActor %s to our authority in %s", mapIndex.c_str(), actor->cell.getDescription().c_str()); Cell *newCell = cellController->getCell(actor->cell); newCell->localActors[mapIndex] = actor; @@ -72,7 +72,7 @@ void Cell::updateLocal(bool forceUpdate) } else { - LOG_APPEND(Log::LOG_INFO, "- Deleting LocalActor %s which is no longer under our authority", + LOG_APPEND(Log::LOG_VERBOSE, "- Deleting LocalActor %s which is no longer under our authority", mapIndex.c_str(), getDescription().c_str()); cellController->removeLocalActorRecord(mapIndex); delete actor; @@ -310,7 +310,7 @@ void Cell::readCellChange(ActorList& actorList) // Is a packet mistakenly moving the actor to the cell it's already in? If so, ignore it if (Misc::StringUtils::ciEqual(getDescription(), baseActor.cell.getDescription())) { - LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Server says DedicatedActor %s moved to %s, but it was already there", + LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Server says DedicatedActor %s moved to %s, but it was already there", mapIndex.c_str(), getDescription().c_str()); continue; } @@ -322,7 +322,7 @@ void Cell::readCellChange(ActorList& actorList) dedicatedActor->position = baseActor.position; dedicatedActor->direction = baseActor.direction; - LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Server says DedicatedActor %s moved to %s", + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Server says DedicatedActor %s moved to %s", mapIndex.c_str(), dedicatedActor->cell.getDescription().c_str()); MWWorld::CellStore *newStore = cellController->getCellStore(dedicatedActor->cell); @@ -331,7 +331,7 @@ void Cell::readCellChange(ActorList& actorList) // If the cell this actor has moved to is active and not under our authority, move them to it if (cellController->isActiveWorldCell(dedicatedActor->cell) && !cellController->hasLocalAuthority(dedicatedActor->cell)) { - LOG_APPEND(Log::LOG_INFO, "- Moving DedicatedActor %s to our active cell %s", + LOG_APPEND(Log::LOG_VERBOSE, "- Moving DedicatedActor %s to our active cell %s", mapIndex.c_str(), dedicatedActor->cell.getDescription().c_str()); cellController->initializeCell(dedicatedActor->cell); Cell *newCell = cellController->getCell(dedicatedActor->cell); @@ -342,7 +342,7 @@ void Cell::readCellChange(ActorList& actorList) { if (cellController->hasLocalAuthority(dedicatedActor->cell)) { - LOG_APPEND(Log::LOG_INFO, "- Creating new LocalActor based on %s in %s", + LOG_APPEND(Log::LOG_VERBOSE, "- Creating new LocalActor based on %s in %s", mapIndex.c_str(), dedicatedActor->cell.getDescription().c_str()); Cell *newCell = cellController->getCell(dedicatedActor->cell); LocalActor *localActor = new LocalActor(); @@ -359,7 +359,7 @@ void Cell::readCellChange(ActorList& actorList) cellController->setLocalActorRecord(mapIndex, newCell->getDescription()); } - LOG_APPEND(Log::LOG_INFO, "- Deleting DedicatedActor %s which is no longer needed", + LOG_APPEND(Log::LOG_VERBOSE, "- Deleting DedicatedActor %s which is no longer needed", mapIndex.c_str(), getDescription().c_str()); cellController->removeDedicatedActorRecord(mapIndex); delete dedicatedActor; @@ -386,7 +386,7 @@ void Cell::initializeLocalActor(const MWWorld::Ptr& ptr) Main::get().getCellController()->setLocalActorRecord(mapIndex, getDescription()); - LOG_APPEND(Log::LOG_INFO, "- Initialized LocalActor %s in %s", mapIndex.c_str(), getDescription().c_str()); + LOG_APPEND(Log::LOG_VERBOSE, "- Initialized LocalActor %s in %s", mapIndex.c_str(), getDescription().c_str()); } void Cell::initializeLocalActors() @@ -420,7 +420,7 @@ void Cell::initializeDedicatedActor(const MWWorld::Ptr& ptr) Main::get().getCellController()->setDedicatedActorRecord(mapIndex, getDescription()); - LOG_APPEND(Log::LOG_INFO, "- Initialized DedicatedActor %s in %s", mapIndex.c_str(), getDescription().c_str()); + LOG_APPEND(Log::LOG_VERBOSE, "- Initialized DedicatedActor %s in %s", mapIndex.c_str(), getDescription().c_str()); } void Cell::initializeDedicatedActors(ActorList& actorList) diff --git a/apps/openmw/mwmp/LocalActor.cpp b/apps/openmw/mwmp/LocalActor.cpp index 9922eecbf..5fbc129a8 100644 --- a/apps/openmw/mwmp/LocalActor.cpp +++ b/apps/openmw/mwmp/LocalActor.cpp @@ -68,7 +68,7 @@ void LocalActor::updateCell() LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Sending ID_ACTOR_CELL_CHANGE about %s %i-%i to server", refId.c_str(), refNum, mpNum); - LOG_APPEND(Log::LOG_INFO, "- Moved from %s to %s", cell.getDescription().c_str(), ptr.getCell()->getCell()->getDescription().c_str()); + LOG_APPEND(Log::LOG_VERBOSE, "- Moved from %s to %s", cell.getDescription().c_str(), ptr.getCell()->getCell()->getDescription().c_str()); cell = *ptr.getCell()->getCell(); position = ptr.getRefData().getPosition();