소스 검색

Create ApplicationHost logger correctly

Mark Monteiro 5 년 전
부모
커밋
bc4e72b29b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs
  2. 1 1
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -255,7 +255,7 @@ namespace Emby.Server.Implementations
 
             ConfigurationManager = new ServerConfigurationManager(ApplicationPaths, LoggerFactory, _xmlSerializer, _fileSystemManager);
 
-            Logger = LoggerFactory.CreateLogger("App");
+            Logger = LoggerFactory.CreateLogger<ApplicationHost>();
 
             _startupOptions = options;
 

+ 1 - 1
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -3091,7 +3091,7 @@ namespace Emby.Server.Implementations.Library
             {
                 _configurationManager.Configuration.ContentTypes = _configurationManager.Configuration.ContentTypes
                     .Except(removeList)
-                        .ToArray();
+                    .ToArray();
 
                 _configurationManager.SaveConfiguration();
             }