From ba6360046e79d622f39cf82fd7f4a9ed5982f7a8 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 24 Sep 2020 18:55:57 -0500 Subject: [PATCH] =?UTF-8?q?fix(logging):=20=F0=9F=90=9B=F0=9F=9A=A7=20temp?= =?UTF-8?q?=20log=20runtime=20AppInsights=20key=20to=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FilterLists.SharedKernel.Logging/HostRunner.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs index d5f30cecf..7d467b99e 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; @@ -23,6 +24,10 @@ public static async Task TryRunWithLoggingAsync(this IHost host, Func? run try { + // TODO: rm, for debugging + var client = host.Services.GetService(); + Log.Warning("Application Insights Instrumentation Key: {InstrumentationKey}", client.InstrumentationKey); + if (runPreHostAsync != null) { Log.Information("Initializing pre-host");