From 8554b5746b13e5bd54c9b990d09f479efc359d14 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 30 Oct 2021 14:20:36 -0500 Subject: [PATCH] =?UTF-8?q?refactor(logging):=20=E2=99=BB=20disable=20AI?= =?UTF-8?q?=20console=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FilterLists.SharedKernel.Logging/ConfigurationExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/ConfigurationExtensions.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/ConfigurationExtensions.cs index cfae9c7cd..828dc8c06 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/ConfigurationExtensions.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/ConfigurationExtensions.cs @@ -1,5 +1,6 @@ using FilterLists.SharedKernel.Logging.Options; using Microsoft.ApplicationInsights.Channel; +using Microsoft.ApplicationInsights.Extensibility.Implementation; using Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Configuration; @@ -25,6 +26,7 @@ public static void AddSharedKernelLogging(this IServiceCollection services, ICon .ServerTelemetryChannelStoragePath }; services.AddSingleton(typeof(ITelemetryChannel), serverTelemetryChannel); + TelemetryDebugWriter.IsTracingDisabled = true; services.AddApplicationInsightsTelemetry(); }