Skip to content

Commit

Permalink
[Add] logging statement to AuthenticationPluginInjector; fixes #155
Browse files Browse the repository at this point in the history
  • Loading branch information
samatrhea committed Dec 17, 2023
1 parent 8663c15 commit 27b7bd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CometServer/Authentication/AuthenticationPluginInjector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public AuthenticationPluginInjector(ILogger<AuthenticationPluginInjector> logger
this.logger = logger;

this.Plugins = this.LoadPlugins().ToList();

foreach (var authenticatorConnector in this.Plugins.SelectMany(authenticatorPlugin => authenticatorPlugin.Connectors))
{
logger.LogInformation(authenticatorConnector.IsUp ? "The {name} is loaded and is Up" : "The {name} is loaded and is Down", authenticatorConnector.Name);
}
}

/// <summary>
Expand Down

0 comments on commit 27b7bd1

Please sign in to comment.