Remove Logs static singletons

This commit is contained in:
nicolas.dorier
2021-11-22 17:16:08 +09:00
parent d60e4f8fe4
commit 35aad4ebf9
75 changed files with 520 additions and 419 deletions

View File

@@ -462,7 +462,7 @@ namespace BTCPayServer
return sql;
}
public static BTCPayNetworkProvider ConfigureNetworkProvider(this IConfiguration configuration)
public static BTCPayNetworkProvider ConfigureNetworkProvider(this IConfiguration configuration, Logs logs)
{
var _networkType = DefaultConfiguration.GetNetworkType(configuration);
var supportedChains = configuration.GetOrDefault<string>("chains", "btc")
@@ -487,7 +487,7 @@ namespace BTCPayServer
throw new ConfigException($"Invalid chains \"{chain}\"");
}
Logs.Configuration.LogInformation(
logs.Configuration.LogInformation(
"Supported chains: " + String.Join(',', supportedChains.ToArray()));
return result;
}