Add more logging to the launcher.

This commit is contained in:
Pieter-Jan Briers 2019-08-13 12:23:38 +02:00
parent f116e887ea
commit c95f17f54b
No known key found for this signature in database
GPG Key ID: 132054DF433AE592
1 changed files with 2 additions and 1 deletions

View File

@ -186,6 +186,7 @@ namespace SS14.Launcher
_interface.StatusLabel.Text = _loc.GetString("Extracting update..");
_interface.ProgressBarVisible = false;
Logger.InfoS("launcher", "Extracting: '{0}' to '{1}'", tmpFile, binPath);
await Task.Run(() =>
{
using (var file = File.OpenRead(tmpFile))
@ -226,7 +227,7 @@ namespace SS14.Launcher
$"{JenkinsBaseUrl}/job/{Uri.EscapeUriString(JenkinsJobName)}/{buildNumber}/artifact/release/{Uri.EscapeUriString(fileName)}");
var tmpFile = Path.GetTempFileName();
Logger.InfoS("launcher", tmpFile);
Logger.InfoS("launcher", "temp download file path: {0}", tmpFile);
await _httpClient.DownloadToFile(artifactUri, tmpFile, f => _taskManager.RunOnMainThread(() =>
{
_interface.ProgressBarVisible = true;