Skip to content

Commit f8f1f92

Browse files
committed
fix(logging): remove debug logging for API Game Config response in standard builds
1 parent 9017470 commit f8f1f92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Hi3Helper.Plugin.Wuwa/Management/WuwaGameManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ internal async Task<int> InitAsyncInner(bool forceInit = false, CancellationToke
337337
configMessage.EnsureSuccessStatusCode();
338338

339339
string jsonResponse = await configMessage.Content.ReadAsStringAsync(token);
340+
#if DEBUG
340341
SharedStatic.InstanceLogger.LogTrace("API Game Config response: {JsonResponse}", jsonResponse);
342+
#endif
341343
WuwaApiResponseGameConfig? tmp = JsonSerializer.Deserialize<WuwaApiResponseGameConfig>(jsonResponse,
342344
WuwaApiResponseContext.Default.WuwaApiResponseGameConfig);
343345
ApiGameConfigResponse = tmp ?? throw new JsonException("Failed to deserialize API game config response.");

0 commit comments

Comments
 (0)