Reactivated old asp.net logs. Fixed empty config bug in the oauth2service
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user