Logging should work on selfhosts, not public

This commit is contained in:
Kwoth
2022-01-06 14:42:17 +01:00
parent ac6e0c2f84
commit 51a396ec9f
2 changed files with 15 additions and 14 deletions

View File

@@ -154,7 +154,8 @@ public sealed class Bot
{ {
// execute all migrators // execute all migrators
var migrators = Services.GetServices<IConfigMigrator>(); var migrators = Services.GetServices<IConfigMigrator>();
foreach (var migrator in migrators) migrator.EnsureMigrated(); foreach (var migrator in migrators)
migrator.EnsureMigrated();
} }
private IEnumerable<object> LoadTypeReaders(Assembly assembly) private IEnumerable<object> LoadTypeReaders(Assembly assembly)

View File

@@ -93,7 +93,7 @@ public sealed class LogCommandService : ILogCommandService, IReadyExecutor
public async Task OnReadyAsync() public async Task OnReadyAsync()
{ {
#if GLOBAL_NADEKO #if !GLOBAL_NADEKO
var timer = new PeriodicTimer(TimeSpan.FromSeconds(15)); var timer = new PeriodicTimer(TimeSpan.FromSeconds(15));
while (await timer.WaitForNextTickAsync()) while (await timer.WaitForNextTickAsync())
{ {