From 64ef598900732672f2a5dbb400f2337d757755b2 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 25 Dec 2021 23:23:12 +0100 Subject: [PATCH] More logging --- SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs | 2 ++ SS14.Launcher/Program.cs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs b/SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs index 96b3b428..3f60c176 100644 --- a/SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs +++ b/SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs @@ -81,6 +81,8 @@ await _http.GetFromJsonAsync>( var buildInfo = versionInfo.Platforms[bestRid]; + Log.Debug("Downloading engine: {EngineDownloadUrl}", buildInfo.Url); + Helpers.EnsureDirectoryExists(LauncherPaths.DirEngineInstallations); var downloadTarget = Path.Combine(LauncherPaths.DirEngineInstallations, $"{engineVersion}.zip"); diff --git a/SS14.Launcher/Program.cs b/SS14.Launcher/Program.cs index fbf4cf45..0ab0a828 100644 --- a/SS14.Launcher/Program.cs +++ b/SS14.Launcher/Program.cs @@ -1,6 +1,7 @@ using System; using System.Net.Http; using System.Net.Http.Headers; +using System.Runtime.InteropServices; using System.Threading.Tasks; using Avalonia; using Avalonia.Controls; @@ -92,6 +93,9 @@ public static void Main(string[] args) .CreateLogger(); } + Log.Information("Runtime: {RuntimeDesc} {RuntimeInfo}", RuntimeInformation.FrameworkDescription, RuntimeInformation.RuntimeIdentifier); + Log.Information("OS: {OSDesc} {OSArch}", RuntimeInformation.OSDescription, RuntimeInformation.OSArchitecture); + #if DEBUG Logger.Sink = new AvaloniaSeriLogger(new LoggerConfiguration() .MinimumLevel.Is(LogEventLevel.Warning)