Skip to content
Snippets Groups Projects
Commit 34721696 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

remove debug logging

parent 743ec407
No related branches found
No related tags found
2 merge requests!2pull changes forward,!1Fix/cluster event wrapper
Pipeline #427737 failed
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -25,14 +25,10 @@ public: ...@@ -25,14 +25,10 @@ public:
void Attach(ObjectType* NewObject) void Attach(ObjectType* NewObject)
{ {
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Attach()."))
checkf(Object == nullptr, TEXT("The event is already attached.")); checkf(Object == nullptr, TEXT("The event is already attached."));
Object = NewObject; Object = NewObject;
ObjectName = Object->GetFullName(); ObjectName = Object->GetFullName();
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Object name: %s and method name %s."), *ObjectName, *MethodName)
EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode(); EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode();
if (OperationMode == EDisplayClusterOperationMode::Cluster) if (OperationMode == EDisplayClusterOperationMode::Cluster)
{ {
...@@ -56,7 +52,6 @@ public: ...@@ -56,7 +52,6 @@ public:
if (EventObjectName != ObjectName) if (EventObjectName != ObjectName)
{ {
// Event does not belong to this object. // Event does not belong to this object.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Event does not belong to this object %s vs %s (this object)."), *EventObjectName, *ObjectName)
return; return;
} }
...@@ -66,7 +61,6 @@ public: ...@@ -66,7 +61,6 @@ public:
if (EventMethodName != MethodName) if (EventMethodName != MethodName)
{ {
// This event does not belong to this method. // This event does not belong to this method.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] This event does not belong to this method. %s vs %s (this object)."), *EventMethodName, *MethodName)
return; return;
} }
...@@ -78,8 +72,6 @@ public: ...@@ -78,8 +72,6 @@ public:
// This call will deserialze the values and fill all values in the tuple appropriately. // This call will deserialze the values and fill all values in the tuple appropriately.
FillArgumentTuple<0>(&MemoryReader, &ArgumentTuple); FillArgumentTuple<0>(&MemoryReader, &ArgumentTuple);
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Cluster event was received, call function."))
ArgumentTuple.ApplyBefore([this](const ArgTypes&... Arguments) ArgumentTuple.ApplyBefore([this](const ArgTypes&... Arguments)
{ (Object->*MemberFunction)(Forward<const ArgTypes&>(Arguments)...); }); { (Object->*MemberFunction)(Forward<const ArgTypes&>(Arguments)...); });
}); });
...@@ -109,7 +101,7 @@ public: ...@@ -109,7 +101,7 @@ public:
EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode(); EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode();
if (OperationMode != EDisplayClusterOperationMode::Cluster) if (OperationMode != EDisplayClusterOperationMode::Cluster)
{ {
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Cluster event was bypassed and function directly called")) //Cluster event can be bypassed and function directly called
(Object->*MemberFunction)(Forward<ArgTypes>(Arguments)...); (Object->*MemberFunction)(Forward<ArgTypes>(Arguments)...);
} }
else else
...@@ -127,8 +119,6 @@ public: ...@@ -127,8 +119,6 @@ public:
SerializeParameters(&MemoryWriter, Forward<ArgTypes>(Arguments)...); SerializeParameters(&MemoryWriter, Forward<ArgTypes>(Arguments)...);
ClusterManager->EmitClusterEventBinary(ClusterEvent, true); ClusterManager->EmitClusterEventBinary(ClusterEvent, true);
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Cluster event was emitted"))
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment