optimize load plugin logs

This commit is contained in:
nyanmisaka 2020-12-03 20:12:05 +08:00
parent 4a3411cad1
commit bbe872524d

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.ToString(), plugin.Version.ToString());
}
Logger.LogInformation("Plugins: {Plugins}", pluginBuilder.ToString());
}
_urlPrefixes = GetUrlPrefixes().ToArray();