From 995637e843483debd274b6679993074aa344c324 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Fri, 10 Sep 2021 12:51:07 -0400 Subject: [PATCH] add logging. helpful when viewing in console --- ApplicationServices/LibraryCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationServices/LibraryCommands.cs b/ApplicationServices/LibraryCommands.cs index 91c0b4d2..da35e4c3 100644 --- a/ApplicationServices/LibraryCommands.cs +++ b/ApplicationServices/LibraryCommands.cs @@ -91,10 +91,11 @@ namespace ApplicationServices var totalCount = importItems.Count; Log.Logger.Information($"GetAllLibraryItems: Total count {totalCount}"); + Log.Logger.Information("Begin long-running import"); logTime($"pre {nameof(importIntoDbAsync)}"); var newCount = await importIntoDbAsync(importItems); logTime($"post {nameof(importIntoDbAsync)}"); - Log.Logger.Information($"Import: New count {newCount}"); + Log.Logger.Information($"Import complete. New count {newCount}"); return (totalCount, newCount); }