Make warnings the default log failure level in content (#3799)
* Make warnings the default log failure level in content * Move the default to the constructor * Remove old changes
This commit is contained in:
@@ -23,8 +23,11 @@ namespace Content.IntegrationTests
|
||||
{
|
||||
protected sealed override ClientIntegrationInstance StartClient(ClientIntegrationOptions options = null)
|
||||
{
|
||||
options ??= new ClientIntegrationOptions();
|
||||
// ReSharper disable once RedundantNameQualifier
|
||||
options ??= new ClientContentIntegrationOption()
|
||||
{
|
||||
FailureLogLevel = LogLevel.Warning
|
||||
};
|
||||
|
||||
options.ContentAssemblies = new[]
|
||||
{
|
||||
typeof(Shared.EntryPoint).Assembly,
|
||||
@@ -61,7 +64,11 @@ namespace Content.IntegrationTests
|
||||
|
||||
protected override ServerIntegrationInstance StartServer(ServerIntegrationOptions options = null)
|
||||
{
|
||||
options ??= new ServerIntegrationOptions();
|
||||
options ??= new ServerContentIntegrationOption()
|
||||
{
|
||||
FailureLogLevel = LogLevel.Warning
|
||||
};
|
||||
|
||||
options.ContentAssemblies = new[]
|
||||
{
|
||||
typeof(Shared.EntryPoint).Assembly,
|
||||
@@ -217,11 +224,21 @@ namespace Content.IntegrationTests
|
||||
|
||||
protected sealed class ClientContentIntegrationOption : ClientIntegrationOptions
|
||||
{
|
||||
public ClientContentIntegrationOption()
|
||||
{
|
||||
FailureLogLevel = LogLevel.Warning;
|
||||
}
|
||||
|
||||
public Action ContentBeforeIoC { get; set; }
|
||||
}
|
||||
|
||||
protected sealed class ServerContentIntegrationOption : ServerIntegrationOptions
|
||||
{
|
||||
public ServerContentIntegrationOption()
|
||||
{
|
||||
FailureLogLevel = LogLevel.Warning;
|
||||
}
|
||||
|
||||
public Action ContentBeforeIoC { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user