From e7ecf3e6cb94916a1bbba02e60371bce6514a0c6 Mon Sep 17 00:00:00 2001 From: Omotola Akeredolu Date: Wed, 27 Sep 2023 17:03:39 -0700 Subject: [PATCH 1/2] Fix to reduce pip log verbosity --- .../Extensions/ServiceCollectionExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs b/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs index 08560b16d..e2ca5a092 100644 --- a/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs +++ b/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs @@ -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 { @@ -141,6 +143,7 @@ public static IServiceCollection AddComponentDetection(this IServiceCollection s // HttpClient services.AddHttpClient(); + services.RemoveAll(); return services; } From a240a11111f1417d22b1e91a5a448fee0108fc9d Mon Sep 17 00:00:00 2001 From: Omotola Akeredolu Date: Wed, 27 Sep 2023 21:48:18 -0700 Subject: [PATCH 2/2] Added comment --- .../Extensions/ServiceCollectionExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs b/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs index e2ca5a092..8c726ea07 100644 --- a/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs +++ b/src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs @@ -143,6 +143,8 @@ public static IServiceCollection AddComponentDetection(this IServiceCollection s // HttpClient services.AddHttpClient(); + + // Remove the default logging for http client services.RemoveAll(); return services;