From d001c0b611a7b317c60e4e8cb329cce03386ceb6 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 5 May 2020 14:24:40 -0400 Subject: [PATCH] More BYOND install logging --- src/Tgstation.Server.Host/Components/Byond/ByondManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs b/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs index dc39a9be98..6f85f0c935 100644 --- a/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs +++ b/src/Tgstation.Server.Host/Components/Byond/ByondManager.cs @@ -155,8 +155,11 @@ namespace Tgstation.Server.Host.Components.Byond try { var download = await downloadTask.ConfigureAwait(false); - await ioManager.ZipToDirectory(versionKey, download, cancellationToken).ConfigureAwait(false); - await byondInstaller.InstallByond(ioManager.ResolvePath(versionKey), version, cancellationToken).ConfigureAwait(false); + + var extractPath = ioManager.ResolvePath(versionKey); + logger.LogTrace("Extracting downloaded BYOND zip to {0}...", extractPath); + await ioManager.ZipToDirectory(extractPath, download, cancellationToken).ConfigureAwait(false); + await byondInstaller.InstallByond(extractPath, version, cancellationToken).ConfigureAwait(false); // make sure to do this last because this is what tells us we have a valid version in the future await ioManager.WriteAllBytes(ioManager.ConcatPath(versionKey, VersionFileName), Encoding.UTF8.GetBytes(version.ToString()), cancellationToken).ConfigureAwait(false);