From afe8aeba32d635cca0d75162239d45af4aa6e359 Mon Sep 17 00:00:00 2001 From: Charles Wahome Date: Thu, 14 Nov 2024 14:47:30 +0300 Subject: [PATCH] Set warning message --- src/Kiota.Builder/Plugins/PluginsGenerationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs index c16f94236f..333af49386 100644 --- a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs +++ b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs @@ -356,10 +356,10 @@ private static (OpenApiRuntime[], Function[], ConversationStarter[]) GetRuntimes { auth = configAuth ?? GetAuth(operation.Security ?? document.SecurityRequirements); } - catch (UnsupportedSecuritySchemeException) + catch (UnsupportedSecuritySchemeException e) { - logger.LogWarning("Unsupported security scheme found in operation '{OperationId}'. Using anonymous auth.", operation.OperationId); auth = new AnonymousAuth(); + logger.LogWarning("{OperationId}: {Message}. Using anonymous auth.", operation.OperationId, e.Message); } runtimes.Add(new OpenApiRuntime