mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Add logging
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user