From 5b460f0b4e5c774530ba80c63c1be1de284d7881 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 6 Feb 2022 14:37:19 +0900 Subject: [PATCH] Error messages when starting BTCPay Server where not shown (Fix #3404) --- BTCPayServer/Program.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BTCPayServer/Program.cs b/BTCPayServer/Program.cs index 3f8c1471d..2497b046f 100644 --- a/BTCPayServer/Program.cs +++ b/BTCPayServer/Program.cs @@ -31,17 +31,13 @@ namespace BTCPayServer loggerFactory.AddProvider(loggerProvider); var logger = loggerFactory.CreateLogger("Configuration"); Logs logs = new Logs(); + logs.Configure(loggerFactory); IConfiguration conf = null; try { - // This is the only way that LoadArgs can print to console. Because LoadArgs is called by the HostBuilder before Logs.Configure is called conf = new DefaultConfiguration() { Logger = logger }.CreateConfiguration(args); if (conf == null) return; - logs.Configure(loggerFactory); - new BTCPayServerOptions().LoadArgs(conf, logs); - logs.Configure(null); - ///// var builder = new WebHostBuilder() .UseKestrel()