Fixed Program

This commit is contained in:
saile2204 2023-03-20 19:31:13 +01:00
parent bbd8676126
commit 81f5db36eb
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,6 @@ public sealed class SpecterConsoleLoggerConfiguration
public Dictionary<LogLevel, ConsoleColor> LogLevelToColorMap { get; set; } = new() public Dictionary<LogLevel, ConsoleColor> LogLevelToColorMap { get; set; } = new()
{ {
/*[LogLevel.Information] = ConsoleColor.Green*/ [LogLevel.Information] = ConsoleColor.DarkGreen
}; };
} }

View File

@ -45,8 +45,10 @@ public class DDNSService : IDDNSService
public async void Start() public async void Start()
{ {
_logger.LogInformation("Fetching UpdateURLs"); _logger.LogInformation("Fetching UpdateURLs");
UpdateURLs = await GetUpdateURLs();
while (UpdateURLs == null || UpdateURLs.Count == 0 ) while (UpdateURLs == null || UpdateURLs.Count == 0 )
{ {
_logger.LogInformation($"Fetching UpdateURLs again.");
UpdateURLs = await GetUpdateURLs(); UpdateURLs = await GetUpdateURLs();
} }