diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-02 00:41:47 +0100 |
|---|---|---|
| committer | Vasily <JustAMan@users.noreply.github.com> | 2019-01-02 02:45:06 +0300 |
| commit | 6643ac3ea412ea62fc067ae6b24ddfe69fd18482 (patch) | |
| tree | 9f655432ea820abb491c4524f3524dcfcdb9c4e1 /Jellyfin.Server/Program.cs | |
| parent | a445233192954dec53f1ed01eec6871039c123ed (diff) | |
Clean up EnvironmentInfo
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index f0907fd58..0150cd533 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -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)
{
|
