Browse Source

Logging formatting

pull/5/head
Ionite 1 year ago
parent
commit
3c1f2e987a
No known key found for this signature in database
  1. 4
      StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs

4
StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs

@ -85,10 +85,10 @@ public partial class CheckpointBrowserViewModel : ObservableObject
var models = modelsResponse.Items;
if (models is null)
{
Logger.Debug("CivitAI Query '{Text}' returned no results ({Elapsed} ms)", queryText, timer.Elapsed.TotalMilliseconds);
Logger.Debug("CivitAI Query {Text} returned no results (in {Elapsed:F1} s)", queryText, timer.Elapsed.TotalSeconds);
return;
}
Logger.Debug("CivitAI Query '{Text}' returned {Results} results ({Elapsed} ms)", queryText, models.Count, timer.Elapsed.TotalMilliseconds);
Logger.Debug("CivitAI Query {Text} returned {Results} results (in {Elapsed:F1} s)", queryText, models.Count, timer.Elapsed.TotalSeconds);
// Database update calls will invoke `OnModelsUpdated`
// Add to database
await liteDbContext.UpsertCivitModelAsync(models);

Loading…
Cancel
Save