Skip to content

Commit

Permalink
Set warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Wahome committed Nov 14, 2024
1 parent 0d98e86 commit afe8aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kiota.Builder/Plugins/PluginsGenerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afe8aeb

Please sign in to comment.