Merge pull request #4648 from nyanmisaka/optimize-plugin-logs

Optimize load plugin logs
This commit is contained in:
Claus Vium 2020-12-04 13:46:06 +01:00 committed by GitHub
commit 9afd19b06e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,17 +774,10 @@ namespace Emby.Server.Implementations
if (Plugins != null)
{
var pluginBuilder = new StringBuilder();
foreach (var plugin in Plugins)
{
pluginBuilder.Append(plugin.Name)
.Append(' ')
.Append(plugin.Version)
.AppendLine();
Logger.LogInformation("Loaded plugin: {PluginName} {PluginVersion}", plugin.Name, plugin.Version);
}
Logger.LogInformation("Plugins: {Plugins}", pluginBuilder.ToString());
}
_urlPrefixes = GetUrlPrefixes().ToArray();