From 4b6ba97a871cdbbac7654bbceefddee4d12404a9 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 3 Apr 2023 09:32:42 -0700 Subject: [PATCH] fixed code to allow compile (#23) --- Newsbot.Collector.Api/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Newsbot.Collector.Api/Program.cs b/Newsbot.Collector.Api/Program.cs index 8f2ef3d..3e1192b 100644 --- a/Newsbot.Collector.Api/Program.cs +++ b/Newsbot.Collector.Api/Program.cs @@ -80,7 +80,7 @@ static ILogger GetLogger(IConfiguration configuration) { var otel = configuration.GetValue(ConfigConnectionStringConst.OpenTelemetry) ?? ""; - if (otel == "")s + if (otel == "") return Log.Logger = new LoggerConfiguration() .WriteTo.Console() .MinimumLevel.Information() @@ -88,7 +88,6 @@ static ILogger GetLogger(IConfiguration configuration) return Log.Logger = new LoggerConfiguration() .WriteTo.Console() - .MinimumLevel.Information() .WriteTo.OpenTelemetry( otel,