From 21ed203fa915dd71e9d7a150b72cacd213a38b11 Mon Sep 17 00:00:00 2001 From: Shawn Nelson Date: Thu, 30 May 2024 16:25:51 -0700 Subject: [PATCH] Fixing stealthy bug which prevented the response from being displayed --- 100_CSharpIntercepting/Helper/DumpLoggingProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/100_CSharpIntercepting/Helper/DumpLoggingProvider.cs b/100_CSharpIntercepting/Helper/DumpLoggingProvider.cs index 1e89821..c80404e 100644 --- a/100_CSharpIntercepting/Helper/DumpLoggingProvider.cs +++ b/100_CSharpIntercepting/Helper/DumpLoggingProvider.cs @@ -208,7 +208,7 @@ public ValueTask LogRequestStopAsync(object? context, HttpRequestMessage request { var correlationId = response.Headers.GetValues("x-ms-client-request-id").First(); var llmCall = DumpLoggingProvider.Instance._logger.CompleteLLMCall(correlationId, functions, responseContent); - if (llmCall != null) + if (llmCall == null) { return ValueTask.CompletedTask; }