Add more logging to the launcher.
This commit is contained in:
@@ -186,6 +186,7 @@ namespace SS14.Launcher
|
|||||||
_interface.StatusLabel.Text = _loc.GetString("Extracting update..");
|
_interface.StatusLabel.Text = _loc.GetString("Extracting update..");
|
||||||
_interface.ProgressBarVisible = false;
|
_interface.ProgressBarVisible = false;
|
||||||
|
|
||||||
|
Logger.InfoS("launcher", "Extracting: '{0}' to '{1}'", tmpFile, binPath);
|
||||||
await Task.Run(() =>
|
await Task.Run(() =>
|
||||||
{
|
{
|
||||||
using (var file = File.OpenRead(tmpFile))
|
using (var file = File.OpenRead(tmpFile))
|
||||||
@@ -226,7 +227,7 @@ namespace SS14.Launcher
|
|||||||
$"{JenkinsBaseUrl}/job/{Uri.EscapeUriString(JenkinsJobName)}/{buildNumber}/artifact/release/{Uri.EscapeUriString(fileName)}");
|
$"{JenkinsBaseUrl}/job/{Uri.EscapeUriString(JenkinsJobName)}/{buildNumber}/artifact/release/{Uri.EscapeUriString(fileName)}");
|
||||||
|
|
||||||
var tmpFile = Path.GetTempFileName();
|
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(() =>
|
await _httpClient.DownloadToFile(artifactUri, tmpFile, f => _taskManager.RunOnMainThread(() =>
|
||||||
{
|
{
|
||||||
_interface.ProgressBarVisible = true;
|
_interface.ProgressBarVisible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user