From 1bba9a26741f236fac0f477908aa77bbbf646fb7 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 13 May 2020 18:06:53 -0400 Subject: [PATCH] Add logging --- src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs b/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs index 685ff6a4bc..966ee57bc7 100644 --- a/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs +++ b/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs @@ -265,7 +265,7 @@ namespace Tgstation.Server.Host.Components.Deployment .Select(x => x.DirectoryName.Value) .ToListAsync(cancellationToken) .ConfigureAwait(false)) - .Select(x => x.ToString()) + .Select(x => x.ToString().ToUpperInvariant()) .ToList(); }).ConfigureAwait(false); @@ -273,6 +273,8 @@ namespace Tgstation.Server.Host.Components.Deployment if (exceptThisOne != null) jobUidsToNotErase.Add(exceptThisOne.DirectoryName.Value.ToString().ToUpperInvariant()); + logger.LogTrace("We will not clean the following directories: {0}", String.Join(", ", jobUidsToNotErase)); + // cleanup var gameDirectory = ioManager.ResolvePath(); await ioManager.CreateDirectory(gameDirectory, cancellationToken).ConfigureAwait(false);