Enhance AIImages mod by adding debug logging functionality to various components, improving troubleshooting capabilities. Introduce a new setting to enable or disable debug logs in the UI, with localized strings in English and Russian. Update StableDiffusionNet.Core dependency to version 1.1.5. Update AIImages.dll to reflect these changes.
This commit is contained in:
@@ -183,8 +183,9 @@ namespace AIImages.Services
|
||||
|
||||
try
|
||||
{
|
||||
// Используем встроенный метод PingAsync библиотеки
|
||||
return await _client.PingAsync(cancellationToken);
|
||||
// Используем встроенный метод HealthCheckAsync библиотеки
|
||||
var healthCheck = await _client.HealthCheckAsync(cancellationToken);
|
||||
return healthCheck.IsHealthy;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -240,7 +241,10 @@ namespace AIImages.Services
|
||||
var samplerNames = new List<string>();
|
||||
if (samplers != null)
|
||||
{
|
||||
samplerNames.AddRange(samplers);
|
||||
foreach (var sampler in samplers)
|
||||
{
|
||||
samplerNames.Add(sampler.Name);
|
||||
}
|
||||
}
|
||||
|
||||
Log.Message($"[AI Images] Found {samplerNames.Count} samplers");
|
||||
@@ -268,7 +272,10 @@ namespace AIImages.Services
|
||||
var schedulerNames = new List<string>();
|
||||
if (schedulers != null)
|
||||
{
|
||||
schedulerNames.AddRange(schedulers);
|
||||
foreach (var scheduler in schedulers)
|
||||
{
|
||||
schedulerNames.Add(scheduler.Name);
|
||||
}
|
||||
}
|
||||
|
||||
Log.Message($"[AI Images] Found {schedulerNames.Count} schedulers");
|
||||
|
||||
Reference in New Issue
Block a user