Program.cs - Plugs output in the wrong place. #2155

Closed
opened 2026-02-06 21:48:06 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @BaronGreenback on GitHub (Sep 27, 2020).

The method appHost,Init() is called at line 182, and contains the code

if (Plugins != null)
            {
                var pluginBuilder = new StringBuilder();

                foreach (var plugin in Plugins)
                {
                    pluginBuilder.Append(plugin.Name)
                        .Append(' ')
                        .Append(plugin.Version)
                        .AppendLine();
                }

                Logger.LogInformation("Plugins: {Plugins}", pluginBuilder.ToString());
            }

However, this code will never ben run, as the plugins aren't loaded until later in appHost.InitializeServices() ( called from program.cs line 188)

Originally created by @BaronGreenback on GitHub (Sep 27, 2020). The method **appHost,Init()** is called at line 182, and contains the code ``` if (Plugins != null) { var pluginBuilder = new StringBuilder(); foreach (var plugin in Plugins) { pluginBuilder.Append(plugin.Name) .Append(' ') .Append(plugin.Version) .AppendLine(); } Logger.LogInformation("Plugins: {Plugins}", pluginBuilder.ToString()); } ``` However, this code will never ben run, as the plugins aren't loaded until later in appHost.InitializeServices() ( called from program.cs line 188)
OVERLORD added the bug label 2026-02-06 21:48:06 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#2155