mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Error messages when starting BTCPay Server where not shown (Fix #3404)
This commit is contained in:
parent
ab8d116f11
commit
5b460f0b4e
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue