mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Readd startup version log message
This commit is contained in:
@@ -211,17 +211,19 @@ namespace Tgstation.Server.Host.Components
|
||||
#pragma warning disable CA1506 // TODO: Decomplexify
|
||||
public Task StartAsync(CancellationToken cancellationToken) => databaseContextFactory.UseContext(async databaseContext =>
|
||||
{
|
||||
logger.LogInformation(assemblyInformationProvider.VersionString);
|
||||
|
||||
try
|
||||
{
|
||||
var factoryStartup = instanceFactory.StartAsync(cancellationToken);
|
||||
await databaseContext.Initialize(cancellationToken).ConfigureAwait(false);
|
||||
await jobManager.StartAsync(cancellationToken).ConfigureAwait(false);
|
||||
var dbInstances = databaseContext.Instances.Where(x => x.Online.Value)
|
||||
.Include(x => x.RepositorySettings)
|
||||
.Include(x => x.ChatSettings)
|
||||
.ThenInclude(x => x.Channels)
|
||||
.Include(x => x.DreamDaemonSettings)
|
||||
.ToAsyncEnumerable();
|
||||
.Include(x => x.RepositorySettings)
|
||||
.Include(x => x.ChatSettings)
|
||||
.ThenInclude(x => x.Channels)
|
||||
.Include(x => x.DreamDaemonSettings)
|
||||
.ToAsyncEnumerable();
|
||||
var tasks = new List<Task>();
|
||||
await factoryStartup.ConfigureAwait(false);
|
||||
await dbInstances.ForEachAsync(metadata => tasks.Add(metadata.Online.Value ? OnlineInstance(metadata, cancellationToken) : Task.CompletedTask), cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user