add logging. helpful when viewing in console

This commit is contained in:
Robert McRackan 2021-09-10 12:51:07 -04:00
parent 9501687f86
commit 995637e843

View File

@ -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);
}