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