浏览代码

Revert unnecessary ordering changes in ApplicationHost

Mark Monteiro 5 年之前
父节点
当前提交
9aa259eb95
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      Emby.Server.Implementations/ApplicationHost.cs

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

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