Clean up EnvironmentInfo

This commit is contained in:
Bond_009
2019-01-02 00:41:47 +01:00
committed by Vasily
parent a445233192
commit 6643ac3ea4
2 changed files with 6 additions and 35 deletions

View File

@@ -57,7 +57,7 @@ namespace Jellyfin.Server
_logger.LogInformation("Jellyfin version: {Version}", version);
EnvironmentInfo environmentInfo = getEnvironmentInfo();
EnvironmentInfo environmentInfo = new EnvironmentInfo(getOperatingSystem());
ApplicationHost.LogEnvironmentInfo(_logger, appPaths, environmentInfo);
SQLitePCL.Batteries_V2.Init();
@@ -220,13 +220,6 @@ namespace Jellyfin.Server
return new NullImageEncoder();
}
private static EnvironmentInfo getEnvironmentInfo()
=> new EnvironmentInfo()
{
SystemArchitecture = RuntimeInformation.OSArchitecture,
OperatingSystem = getOperatingSystem()
};
private static MediaBrowser.Model.System.OperatingSystem getOperatingSystem() {
switch (Environment.OSVersion.Platform)
{