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,