Skip to content
Snippets Groups Projects
Commit 3e3e060d authored by David Gilbert's avatar David Gilbert :bug:
Browse files

fix(cave, replication): Fixes more logging statements.

parent 84b58df6
No related branches found
No related tags found
2 merge requests!107UE5.4-2024.1-rc1,!98Improved join/attachment logic for clusters to support multi-cluster connections at some point
Pipeline #442237 failed
...@@ -51,11 +51,11 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* ...@@ -51,11 +51,11 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState*
if (bIsAttached) if (bIsAttached)
{ {
UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Already attached, skipping repeated attachment.", UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Already attached, skipping repeated attachment.",
*this->GetName()); GetName());
return; return;
} }
UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Starting DCRA Attachment process.", *this->GetName()); UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Starting DCRA Attachment process.", GetName());
// This should give us the first local player controller // This should give us the first local player controller
const auto* PlayerController = UGameplayStatics::GetPlayerController(GetWorld(), 0); const auto* PlayerController = UGameplayStatics::GetPlayerController(GetWorld(), 0);
...@@ -65,7 +65,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* ...@@ -65,7 +65,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState*
{ {
UE_LOGFMT(Toolkit, Warning, UE_LOGFMT(Toolkit, Warning,
"{Name} AttachDCRAIfRequired: PlayerController not valid or not locally controlled.", "{Name} AttachDCRAIfRequired: PlayerController not valid or not locally controlled.",
*this->GetName()); GetName());
return; return;
} }
const auto* PlayerState = const auto* PlayerState =
...@@ -75,7 +75,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* ...@@ -75,7 +75,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState*
UE_LOGFMT(Toolkit, Error, UE_LOGFMT(Toolkit, Error,
"{Name} AttachDCRAIfRequired: PlayerState is not valid or not of type " "{Name} AttachDCRAIfRequired: PlayerState is not valid or not of type "
"ARWTHVRPlayerState.", "ARWTHVRPlayerState.",
*this->GetName()); GetName());
return; return;
} }
...@@ -91,7 +91,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState* ...@@ -91,7 +91,7 @@ void AClusterRepresentationActor::AttachDCRAIfRequired(const ARWTHVRPlayerState*
// The local player this is executed on corresponds to this actor // The local player this is executed on corresponds to this actor
if (CCA == this) if (CCA == this)
{ {
UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Attaching DCRA to {Name}.", GetName()); UE_LOGFMT(Toolkit, Display, "{Name} AttachDCRAIfRequired: Attaching DCRA to {Name}.", GetName(), CCA->GetName());
bIsAttached = AttachDCRA(); bIsAttached = AttachDCRA();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment