add locale and account to logging

This commit is contained in:
Robert McRackan 2020-08-27 14:54:11 -04:00
parent 0938c84929
commit 2a294f4f85
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,8 @@ namespace FileLiberator
{ {
libraryBook.Book.Title, libraryBook.Book.Title,
libraryBook.Book.AudibleProductId, libraryBook.Book.AudibleProductId,
libraryBook.Book.Locale,
libraryBook.Account,
tempAaxFilename, tempAaxFilename,
actualFilePath, actualFilePath,
length, length,

View File

@ -46,6 +46,14 @@ namespace FileLiberator
private static async Task<StatusHandler> processBookAsync(IProcessable processable, LibraryBook libraryBook) private static async Task<StatusHandler> 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 // 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); var status = await processable.ProcessAsync(libraryBook);
if (status == null) if (status == null)