Browse Source

Revert unnecessary ordering changes in ApplicationHost

Mark Monteiro 5 years ago
parent
commit
9aa259eb95
1 changed files with 7 additions and 6 deletions
  1. 7 6
      Emby.Server.Implementations/ApplicationHost.cs

+ 7 - 6
Emby.Server.Implementations/ApplicationHost.cs

@@ -165,11 +165,6 @@ namespace Emby.Server.Implementations
         /// <inheritdoc />
         public bool IsShuttingDown { get; private set; }
 
-        /// <summary>
-        /// Gets the logger factory.
-        /// </summary>
-        protected ILoggerFactory LoggerFactory { get; }
-
         /// <summary>
         /// Gets the logger.
         /// </summary>
@@ -183,6 +178,11 @@ namespace Emby.Server.Implementations
         /// <value>The plugins.</value>
         public IReadOnlyList<IPlugin> Plugins => _plugins;
 
+        /// <summary>
+        /// Gets the logger factory.
+        /// </summary>
+        protected ILoggerFactory LoggerFactory { get; }
+
         /// <summary>
         /// Gets or sets the application paths.
         /// </summary>
@@ -378,9 +378,10 @@ namespace Emby.Server.Implementations
             LoggerFactory = loggerFactory;
             FileSystemManager = fileSystem;
 
-            Logger = LoggerFactory.CreateLogger("App");
             ConfigurationManager = new ServerConfigurationManager(ApplicationPaths, LoggerFactory, XmlSerializer, FileSystemManager);
 
+            Logger = LoggerFactory.CreateLogger("App");
+
             StartupOptions = options;
 
             ImageEncoder = imageEncoder;