From 3c1f2e987a53a92a81016e0a5d323b38b93a5d32 Mon Sep 17 00:00:00 2001 From: Ionite Date: Fri, 16 Jun 2023 17:15:37 -0400 Subject: [PATCH] Logging formatting --- StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs b/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs index ee0d1b6e..b7eaf9a3 100644 --- a/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs +++ b/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);