Add logging

This commit is contained in:
Jordan Brown
2020-05-13 18:06:53 -04:00
parent 300f5d994a
commit 1bba9a2674
@@ -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);