Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Dec 25, 2021
1 parent 7ab2533 commit 64ef598
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SS14.Launcher/Models/EngineManager/EngineManagerDynamic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ await _http.GetFromJsonAsync<Dictionary<string, VersionInfo>>(

var buildInfo = versionInfo.Platforms[bestRid];

Log.Debug("Downloading engine: {EngineDownloadUrl}", buildInfo.Url);

Helpers.EnsureDirectoryExists(LauncherPaths.DirEngineInstallations);

var downloadTarget = Path.Combine(LauncherPaths.DirEngineInstallations, $"{engineVersion}.zip");
Expand Down
4 changes: 4 additions & 0 deletions SS14.Launcher/Program.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 64ef598

Please sign in to comment.