Pls stop crashing
This commit is contained in:
parent
b7ebb67cbb
commit
88f5471fe3
|
@ -405,7 +405,7 @@ namespace Emby.Server.Implementations
|
|||
// hack alert, until common can target .net core
|
||||
BaseExtensions.CryptographyProvider = CryptographyProvider;
|
||||
|
||||
XmlSerializer = new MyXmlSerializer(fileSystem, LoggerFactory.CreateLogger("XmlSerializer"));
|
||||
XmlSerializer = new MyXmlSerializer(fileSystem, loggerFactory.CreateLogger("XmlSerializer"));
|
||||
|
||||
NetworkManager = networkManager;
|
||||
networkManager.LocalSubnetsFn = GetConfiguredLocalSubnets;
|
||||
|
|
|
@ -53,12 +53,12 @@ namespace MediaBrowser.Server.Mono
|
|||
var appPaths = CreateApplicationPaths(applicationPath, customProgramDataPath);
|
||||
_appPaths = appPaths;
|
||||
|
||||
var logger = new LoggerConfiguration()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console()
|
||||
.CreateLogger();
|
||||
|
||||
using (var loggerFactory = new SerilogLoggerFactory(logger))
|
||||
using (var loggerFactory = new SerilogLoggerFactory(
|
||||
new LoggerConfiguration()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console()
|
||||
.CreateLogger()
|
||||
, true))
|
||||
{
|
||||
_loggerFactory = loggerFactory;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user