From 2a294f4f8521d04cc5bd379264b426fa0f0bc468 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Thu, 27 Aug 2020 14:54:11 -0400 Subject: [PATCH] add locale and account to logging --- FileLiberator/UNTESTED/DownloadBook.cs | 2 ++ FileLiberator/UNTESTED/IProcessableExt.cs | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/FileLiberator/UNTESTED/DownloadBook.cs b/FileLiberator/UNTESTED/DownloadBook.cs index 808b5c85..f7ad8c8c 100644 --- a/FileLiberator/UNTESTED/DownloadBook.cs +++ b/FileLiberator/UNTESTED/DownloadBook.cs @@ -71,6 +71,8 @@ namespace FileLiberator { libraryBook.Book.Title, libraryBook.Book.AudibleProductId, + libraryBook.Book.Locale, + libraryBook.Account, tempAaxFilename, actualFilePath, length, diff --git a/FileLiberator/UNTESTED/IProcessableExt.cs b/FileLiberator/UNTESTED/IProcessableExt.cs index 79c1d0c5..e23419a2 100644 --- a/FileLiberator/UNTESTED/IProcessableExt.cs +++ b/FileLiberator/UNTESTED/IProcessableExt.cs @@ -46,6 +46,14 @@ namespace FileLiberator private static async Task processBookAsync(IProcessable processable, LibraryBook libraryBook) { + Serilog.Log.Information("Begin " + nameof(processBookAsync) + " {@DebugInfo}", new + { + libraryBook.Book.Title, + libraryBook.Book.AudibleProductId, + libraryBook.Book.Locale, + libraryBook.Account + }); + // this should never happen. check anyway. ProcessFirstValidAsync returning null is the signal that we're done. we can't let another IProcessable accidentally send this command var status = await processable.ProcessAsync(libraryBook); if (status == null)