Reactivated old asp.net logs. Fixed empty config bug in the oauth2service

This commit is contained in:
Marcel Baumgartner
2023-05-21 23:00:23 +02:00
parent a2af6a794f
commit f8fdc22bb0
2 changed files with 5 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ public class OAuth2Service
string.IsNullOrEmpty(displayName) ?
StringHelper.CapitalizeFirstCharacter(id) : displayName;
if(Configs.All(x => x.Id != id))
return;
var provider = Activator.CreateInstance<T>()! as OAuth2Provider;
if (provider == null)

View File

@@ -46,8 +46,8 @@ namespace Moonlight
// Switch to logging.net injection
// TODO: Enable in production
builder.Logging.ClearProviders();
builder.Logging.AddProvider(new LogMigratorProvider());
//builder.Logging.ClearProviders();
//builder.Logging.AddProvider(new LogMigratorProvider());
// Add services to the container.
builder.Services.AddRazorPages();