Skip to content

Commit

Permalink
Fix to reduce pip log verbosity (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omotola committed Sep 28, 2023
1 parent f9bbd39 commit d1edc29
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ namespace Microsoft.ComponentDetection.Orchestrator.Extensions;
using Microsoft.ComponentDetection.Orchestrator.Services;
using Microsoft.ComponentDetection.Orchestrator.Services.GraphTranslation;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Http;

public static class ServiceCollectionExtensions
{
Expand Down Expand Up @@ -142,6 +144,9 @@ public static IServiceCollection AddComponentDetection(this IServiceCollection s
// HttpClient
services.AddHttpClient();

// Remove the default logging for http client
services.RemoveAll<IHttpMessageHandlerBuilderFilter>();

return services;
}
}

0 comments on commit d1edc29

Please sign in to comment.