aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-08-14 20:42:26 +0200
committerDavid <daullmer@gmail.com>2020-08-14 20:42:26 +0200
commit025ee2163ffea826083fdea6a084090733ab8fff (patch)
tree1468f713e9234f50a3aad1cb10767f65ceef0b04
parentd296a1f6d0ee8cb48c2234aa9666d01035cd18b5 (diff)
Change log message, load assembly only once
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 4fb5d40c5..62c2e55c2 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1388,11 +1388,12 @@ namespace Emby.Server.Implementations
public IEnumerable<Assembly> GetApiPluginAssemblies()
{
var types = _allConcreteTypes
- .Where(i => typeof(ControllerBase).IsAssignableFrom(i));
+ .Where(i => typeof(ControllerBase).IsAssignableFrom(i))
+ .Distinct();
foreach (var type in types)
{
- Logger.LogDebug("Found API endpoints in plugin " + type.Assembly.FullName);
+ Logger.LogDebug("Found API endpoints in plugin {name}", type.Assembly.FullName);
yield return type.Assembly;
}
}