mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Logging should work on selfhosts, not public
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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())
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user