Skip to content

Commit df035c4

Browse files
authored
do not warn, if valid [UnrealSDK] (clockworklabs#3898)
# Description of Changes Avoid warning if table is valid. # API and ABI breaking changes - # Expected complexity level and risk 1 # Testing Accessing tables via Blueprint and no warning in output log, if table is valid.
1 parent 69edb3e commit df035c4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/DBCache

sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/DBCache/TableHandle.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ class FTableHandle
5050
TArray<RowType> Out;
5151

5252
auto T = Cache->GetTable(TableName);
53-
UE_LOG(LogTemp, Warning,
54-
TEXT("GetTable(%s) valid=%d"),
55-
*TableName, T.IsValid());
56-
5753
if (T.IsValid())
5854
{
5955
for (const auto& Pair : T->Entries)
@@ -62,6 +58,12 @@ class FTableHandle
6258
Out.Add(*Pair.Value.Row);
6359
}
6460
}
61+
else
62+
{
63+
UE_LOG(LogTemp, Warning,
64+
TEXT("GetTable(%s) valid=%d"),
65+
*TableName, T.IsValid());
66+
}
6567
return Out;
6668
}
6769

0 commit comments

Comments
 (0)